forked from LeenkxTeam/LNXSDK
19 lines
556 B
Haxe
19 lines
556 B
Haxe
package leenkx.trait.physics;
|
|
|
|
#if (!lnx_physics)
|
|
|
|
class PhysicsConstraint extends iron.Trait { public function new() { super(); } }
|
|
@:enum abstract ConstraintAxis(Int) from Int to Int { }
|
|
|
|
#else
|
|
|
|
#if lnx_bullet
|
|
typedef PhysicsConstraint = leenkx.trait.physics.bullet.PhysicsConstraint;
|
|
typedef ConstraintAxis = armory.trait.physics.bullet.PhysicsConstraint.ConstraintAxis;
|
|
#else
|
|
typedef PhysicsConstraint = leenkx.trait.physics.oimo.PhysicsConstraint;
|
|
typedef ConstraintAxis = armory.trait.physics.oimo.PhysicsConstraint.ConstraintAxis;
|
|
#end
|
|
|
|
#end
|