2025-01-22 16:18:30 +01:00
|
|
|
package leenkx.trait.physics;
|
|
|
|
|
|
|
|
|
|
#if (!lnx_physics)
|
|
|
|
|
|
|
|
|
|
class PhysicsConstraint extends iron.Trait { public function new() { super(); } }
|
2025-05-11 17:46:28 +00:00
|
|
|
@:enum abstract ConstraintAxis(Int) from Int to Int { }
|
2025-01-22 16:18:30 +01:00
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
|
|
#if lnx_bullet
|
|
|
|
|
typedef PhysicsConstraint = leenkx.trait.physics.bullet.PhysicsConstraint;
|
2025-05-11 17:46:49 +00:00
|
|
|
typedef ConstraintAxis = leenkx.trait.physics.bullet.PhysicsConstraint.ConstraintAxis;
|
2025-01-22 16:18:30 +01:00
|
|
|
#else
|
|
|
|
|
typedef PhysicsConstraint = leenkx.trait.physics.oimo.PhysicsConstraint;
|
2025-05-11 17:46:49 +00:00
|
|
|
typedef ConstraintAxis = leenkx.trait.physics.oimo.PhysicsConstraint.ConstraintAxis;
|
2025-01-22 16:18:30 +01:00
|
|
|
#end
|
|
|
|
|
|
|
|
|
|
#end
|