Interface ICloneableShape<T>
Defines a method to create a new instance of a shape for use with another rigid body.
public interface ICloneableShape<out T> where T : Shape
Type Parameters
TThe concrete shape type implementing this interface.
Methods
Clone()
Creates a copy of the current shape instance that shares underlying geometry data.
T Clone()
Returns
- T
A new shape instance of type
Tthat shares immutable data with the original but has its own instance state.