Static colliders

BeginnerDesigner Static colliders aren’t moved by forces such as gravity and collisions, but other physics objects can bump into them. Typical static colliders are strong immovable objects like walls, floors, large rocks, and so on.

Add a static collider

  • Select the entity you want to make a static collider.
  • Property Grid, click Add component and select Static Collider.
  • collider shape to match the shape of the entity. To do this, in the Property Grid, expand the Static Collider component to view its properties.
  • Collider Shapes, click (Add) and select the shape you want.

    Static collider properties

    Property Grid.

    Move a static collider at runtime

    If you need to move a static collider at runtime, you can do it with a script:
    1. PhysicsComponent.Entity.Transform.Position += PhysicsComponent.Entity.Transform.Position + Vector3.UnitX;PhysicsComponent.Entity.Transform.UpdateWorldMatrix();PhysicsComponent.UpdatePhysicsTransformation();

    See also

  • Rigidbodies
  • Characters
  • Collider shapes
  • Triggers