CollisionShape

  • CollisionShape is the base class for all shapes used in collision detection.

  • Box and Sphere are the known subclasses, representing mathematical models of a box and a sphere respectively.

  • It includes a makeCopy() method to create a copy of the collision shape.

  • Collision checks can be performed against instances of CollisionShape and its subclasses.

public abstract class CollisionShape
Known Direct Subclasses
Box Mathematical representation of a box. 
Sphere Mathematical representation of a sphere. 

Base class for all types of shapes that collision checks can be performed against.

Public Methods

abstract CollisionShape

Inherited Methods

Public Methods

public abstract CollisionShape makeCopy ()

Design a Mobile Site
View Site in Mobile | Classic
Share by: