HPL3/Entities/Working with Shapes

From Frictional Wiki
Jump to navigation Jump to search

Shapes

General Parameters:

Name: Name of the shape. Position: Position of the shape in the world. Rotation: 3D Vector storing the shape rotation. Scale: 3D Vector storing the scale of the shape. Shape Specific:

Create body: will create a body out of the shape. Also works when multiple shapes are selected, thus creating a multishape body. Detach from body: the shape will be removed from the body it is part of. Best Practices:

Keep the Scale in all axis larger than 0.04 to make the collisions stable

Shape EditMode

This EditMode is used to create Shapes that will help in physics body creation. At the moment you can create four types of shapes:

  • Box
  • Cylinder
  • Sphere
  • Capsule