moisesjpelaez - Oimo Physics

This commit is contained in:
Onek8 2025-05-11 17:46:28 +00:00
parent 335f3541f1
commit b8c8ccad9d

View File

@ -3,17 +3,16 @@ package leenkx.trait.physics;
#if (!lnx_physics) #if (!lnx_physics)
class PhysicsConstraint extends iron.Trait { public function new() { super(); } } class PhysicsConstraint extends iron.Trait { public function new() { super(); } }
@:enum abstract ConstraintAxis(Int) from Int to Int { }
#else #else
#if lnx_bullet #if lnx_bullet
typedef PhysicsConstraint = leenkx.trait.physics.bullet.PhysicsConstraint; typedef PhysicsConstraint = leenkx.trait.physics.bullet.PhysicsConstraint;
typedef ConstraintAxis = armory.trait.physics.bullet.PhysicsConstraint.ConstraintAxis;
#else #else
typedef PhysicsConstraint = leenkx.trait.physics.oimo.PhysicsConstraint; typedef PhysicsConstraint = leenkx.trait.physics.oimo.PhysicsConstraint;
typedef ConstraintAxis = armory.trait.physics.oimo.PhysicsConstraint.ConstraintAxis;
#end #end
#end #end