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 revisionBoth sides next revision
dragengine:modules:dragonscript:abstractions [2020/05/05 20:15] dragonlorddragengine:modules:dragonscript:abstractions [2020/05/05 20:16] dragonlord
Line 76: Line 76:
         // 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