Drag[en]gine Script Module DragonScript
1.23
|
Find closest element to a given position. More...
Public Member Functions | |
void | clearClosest () |
Clear closest element. More... | |
float | getClosestDistance () |
Distance of closest element or 0 otherwise. More... | |
Element | getClosestElement () |
Closest element if found or null otherwise. More... | |
void | keepIfCloser (Element element) |
Store element if distance of center to origin is less than closest element. More... | |
FindClosestVisitor | new (DVector origin) |
Create visitor. More... | |
void | setIfCloser (Element element) |
Store element if distance of center to origin is less than closest element. More... | |
void | visitElement (Element element) |
Visit an element. More... | |
Public Member Functions inherited from Dragengine.Scenery.ElementVisitor | |
ElementVisitor | new () |
Create element visitor. More... | |
void | visitAnimatedElement (AnimatedElement element) |
Visit animated element. More... | |
void | visitAttachableBaseBillboard (AttachableBaseBillboard baseBillboard) |
Visit attachable base billboard. More... | |
void | visitAttachableBaseForceField (AttachableBaseForceField forceField) |
Visit attachable base force field. More... | |
void | visitAttachableBaseLight (AttachableBaseLight light) |
Visit attachable base light. More... | |
void | visitAttachableBaseParticleEmitter (AttachableBaseParticleEmitter particleEmitter) |
Visit attachable base particle emitter. More... | |
void | visitAttachableBaseSpeaker (AttachableBaseSpeaker speaker) |
Visit attachable base speaker. More... | |
void | visitAttachSlot (AttachSlot attachSlot) |
Visit attach slot. More... | |
void | visitBaseActor (BaseActor actor) |
Visit base actor. More... | |
void | visitBaseBillboard (BaseBillboard element) |
Visit base billboard element. More... | |
void | visitBaseForceField (BaseForceField forceField) |
Visit base force field. More... | |
void | visitBaseLight (BaseLight light) |
Visit base light. More... | |
void | visitBaseParticleEmitter (BaseParticleEmitter particleEmitter) |
Visit base particle emitter. More... | |
void | visitBaseSky (BaseSky sky) |
Visit base sky. More... | |
void | visitBaseSpeaker (BaseSpeaker speaker) |
Visit base speaker. More... | |
void | visitBaseVRActor (BaseVRActor actor) |
Visit base VR actor. More... | |
void | visitBehaviorElement (BehaviorElement element) |
Visit behavior element. More... | |
void | visitEnvironmentMap (EnvironmentMap environmentMap) |
Visit environment map. More... | |
void | visitGhostElement (GhostElement element) |
Visit ghost element. More... | |
void | visitHiddenElement (HiddenElement element) |
Visit hidden element. More... | |
void | visitInfoConvoCoordSystem (InfoConvoCoordSystem info) |
Visit info conversation coordinate system. More... | |
void | visitPhysicsElement (PhysicsElement element) |
Visit physics element. More... | |
void | visitSimpleElement (SimpleElement element) |
Visit simple element. More... | |
void | visitSimpleElementOnRail (SimpleElementOnRail element) |
Visit simple element on rail. More... | |
void | visitTriggerConversation (TriggerConversation trigger) |
Visit conversation trigger. More... | |
void | visitTriggerEvaluate (TriggerEvaluate trigger) |
Visit base evaluate trigger. More... | |
void | visitTriggerShout (TriggerShout trigger) |
Visit shout trigger. More... | |
void | visitTriggerTimer (TriggerTimer trigger) |
Visit base timer trigger. More... | |
void | visitTriggerToogle (TriggerToggle trigger) |
Visit base toggle trigger. More... | |
void | visitTriggerTouch (TriggerTouch trigger) |
Visit base touch trigger. More... | |
void | visitTwoStateAnimatedElement (TwoStateAnimatedElement element) |
Visit two state animated element. More... | |
Find closest element to a given position.
void Dragengine.Scenery.Visitors.FindClosestVisitor.clearClosest | ( | ) |
Clear closest element.
float Dragengine.Scenery.Visitors.FindClosestVisitor.getClosestDistance | ( | ) |
Distance of closest element or 0 otherwise.
Element Dragengine.Scenery.Visitors.FindClosestVisitor.getClosestElement | ( | ) |
Closest element if found or null otherwise.
void Dragengine.Scenery.Visitors.FindClosestVisitor.keepIfCloser | ( | Element | element | ) |
Store element if distance of center to origin is less than closest element.
FindClosestVisitor Dragengine.Scenery.Visitors.FindClosestVisitor.new | ( | DVector | origin | ) |
Create visitor.
origin | Position to measure distancefrom |
void Dragengine.Scenery.Visitors.FindClosestVisitor.setIfCloser | ( | Element | element | ) |
Store element if distance of center to origin is less than closest element.
void Dragengine.Scenery.Visitors.FindClosestVisitor.visitElement | ( | Element | element | ) |
Visit an element.
Store it as closest element if distance of center to origin is less than closest element or if element is null.
Reimplemented from Dragengine.Scenery.ElementVisitor.