Skip to content

Latest commit

 

History

History
32 lines (18 loc) · 743 Bytes

convex_shape.md

File metadata and controls

32 lines (18 loc) · 743 Bytes

ConvexShape

ConvexShape extends CollisionShape

This abstract class represents a convex collision shape associated with a body that is used during the narrow-phase collision detection.

Subclasses:

  1. CapsuleShape
  2. ConvexPolyhedronShape
  3. SphereShape

Create

Abstract class.You can't create ConvexShape class.

Methods


ConvexShape:getMargin()

Return the current object margin.

RETURN

  • (number) - The margin (in meters) around the collision shape