Click or drag to resize
DigitalRuneRigidBodyClone Method
Creates a new RigidBody that is a clone (deep copy) of the current instance.

Namespace: DigitalRune.Physics
Assembly: DigitalRune.Physics (in DigitalRune.Physics.dll) Version: 1.10.0.0 (1.10.0.14427)
Syntax
public RigidBody Clone()

Return Value

Type: RigidBody
A new RigidBody that is a clone (deep copy) of the current instance.
Remarks
Notes to Inheritors: The method Clone calls CreateInstanceCore which is responsible for creating a new instance of the RigidBody derived class and CloneCore(RigidBody) to create a copy of the current instance. Classes that derive from RigidBody need to implement CreateInstanceCore and CloneCore(RigidBody).
See Also