BasicKinematicBody constructor
BasicKinematicBody({ - BodyType type = BodyType.kinematic,
- double? mass,
- Matrix3? inertiaTensor,
- Vector3? linearVelocity,
- Vector3? angularVelocity,
- double linearDamping = 0,
- double angularDamping = 0,
- bool useGravity = false,
- bool ccdEnabled = false,
- Vector3? linearAxisLocks,
- Vector3? angularAxisLocks,
})
Implementation
BasicKinematicBody({
BodyType type = BodyType.kinematic,
double? mass,
Matrix3? inertiaTensor,
Vector3? linearVelocity,
Vector3? angularVelocity,
double linearDamping = 0,
double angularDamping = 0,
bool useGravity = false,
bool ccdEnabled = false,
Vector3? linearAxisLocks,
Vector3? angularAxisLocks,
}) : _type = _checkType(type),
_mass = mass,
_inertiaTensor = inertiaTensor,
_linearVelocity = linearVelocity ?? Vector3.zero(),
_angularVelocity = angularVelocity ?? Vector3.zero(),
_linearDamping = linearDamping,
_angularDamping = angularDamping,
_useGravity = useGravity,
_ccdEnabled = ccdEnabled,
_linearAxisLocks = linearAxisLocks ?? Vector3(1, 1, 1),
_angularAxisLocks = angularAxisLocks ?? Vector3(1, 1, 1);