Table of Contents

Interface ICloneableShape<T>

Namespace
Jitter2.Collision.Shapes
Assembly
Jitter2.dll

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

T

The 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 T that shares immutable data with the original but has its own instance state.