Collider shapes
BeginnerDesigner colliders to interact, you need to set their shape in the Property Grid. You can specify a geometric shape, or use a collider shape asset. Components can have multiple intersecting shapes, and don’t have to match the entity model, if it has one. Each shape has additional properties including size, orientation, offset, and so on.
Types of collider shape
Box
Capsule
The capsule shape is especially useful for character components, as its curved base lets the entity move to higher planes (eg when climbing staircases).
Cone
Cylinder
Sphere
Infinite plane
The infinite plane covers an infinite distance across one dimension.Think of it like a wall or floor stretching into the distance for ever.You can use several infinite planes together to box users in and stop them “tunneling” outside the level.
Asset
Collider shape assets below).
Collider shape assets
collider shape assets and use them as your collider shape. This means you can edit the collider shape asset and automatically update it in every entity that uses it.
Create a collider shape asset
- Asset View (bottom by default), click Add asset.
- Physics, then select the shape you want to create.
CollisionMeshes folder.
Create a collider shape asset from a model
This is useful to quickly create a collider shape that matches a model. - Asset View (bottom by default), click Add asset.
- Physics > Convex hull. Select an asset window opens.
- OK.
Game Studio creates a collider shape asset from the model.
Use a collider shape asset
- static collider or rigidbody properties, under Collider Shapes, select Asset.
- Shape, specify the collider shape asset you want to use.
Asset View to the Shape field in the Property Grid. Alternatively, click (Select an asset) and browse to the asset.
See also
- Colliders
- Tutorial: Create a bouncing ball
- Tutorial: Script a trigger
