User Tools

Site Tools


dragengine:modules:dragonscript:abstractions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
dragengine:modules:dragonscript:abstractions [2020/05/05 20:14] dragonlorddragengine:modules:dragonscript:abstractions [2020/05/05 20:16] dragonlord
Line 71: Line 71:
                  
         // create collider which is used for physical interaction. in most situations you want to         // create collider which is used for physical interaction. in most situations you want to
-        // animated the component with the rig. this requires to component behavior to go first+        // animate the component with the rig. this requires to component behavior to go first
         collider = ECBehaviorCollider.new(this, component)         collider = ECBehaviorCollider.new(this, component)
                  
         // create head lights. attached to collider with id "headlightLeft" respectively "headlightRight"         // create head lights. attached to collider with id "headlightLeft" respectively "headlightRight"
         headLightLeft = ECBehaviorLight.new(this, collider, "headlightLeft")         headLightLeft = ECBehaviorLight.new(this, collider, "headlightLeft")
-        headLightLeft.getLight().getColor().setColor(Color.YELLOW)+        headLightLeft.getLight().getColor().setColor(Color.yellow)
         headLightLeft.getAttach().getPosition().setVector(Vector.new(-1, 0.5, 2))         headLightLeft.getAttach().getPosition().setVector(Vector.new(-1, 0.5, 2))
                  
         headLightRight = ECBehaviorLight.new(this, collider, "headlightRight")         headLightRight = ECBehaviorLight.new(this, collider, "headlightRight")
-        headLightRight.getLight().getColor().setColor(Color.YELLOW)+        headLightRight.getLight().getColor().setColor(Color.yellow)
         headLightRight.getAttach().getPosition().setVector(Vector.new(1, 0.5, 2))         headLightRight.getAttach().getPosition().setVector(Vector.new(1, 0.5, 2))
                  
dragengine/modules/dragonscript/abstractions.txt · Last modified: 2024/03/14 16:43 by dragonlord