deepCopy method
Sp3dPhysics
deepCopy()
inherited
Deep copy the object.
Implementation
Sp3dPhysics deepCopy() {
return Sp3dPhysics(
isLocked: isLocked,
mass: mass,
speed: speed,
direction: direction?.deepCopy(),
velocity: velocity?.deepCopy(),
rotateAxis: rotateAxis?.deepCopy(),
angularVelocity: angularVelocity,
angle: angle,
name: name,
others: others != null ? {...others!} : null);
}