When implemented in a derived class, creates a new instance of the RigidBody derived class.

Namespace: DigitalRune.Physics
Assembly: DigitalRune.Physics (in DigitalRune.Physics.dll) Version: 1.5.0.0 (1.5.0.9503)

Syntax

C#
protected virtual RigidBody CreateInstanceCore()
Visual Basic
Protected Overridable Function CreateInstanceCore As RigidBody
Visual C++
protected:
virtual RigidBody^ CreateInstanceCore()

Return Value

The new instance.

Remarks

Do not call this method directly (except when calling base in an implementation). This method is called internally by the Clone()()()() method whenever a new instance of the RigidBody is created.

Notes to Inheritors: Every RigidBody derived class must implement this method. A typical implementation is to simply call the default constructor and return the result.

See Also