Type alias DynamicBody3DProps

DynamicBody3DProps: ParentProps & {
    bodyDesc?: RigidBodyDesc;
    colliderDesc: ColliderDesc;
    name?: string;
    onEndCollide?: ((target) => void);
    onStartCollide?: ((target) => void);
    position?: Vec3;
    rotation?: Vec3;
}

Type declaration

  • Optional bodyDesc?: RigidBodyDesc
  • colliderDesc: ColliderDesc

    the shape of the body to simulate, keep it simple sphere,cuboid,capsule... avoid trimesh

  • Optional name?: string

    name of the BJS transform node, displayed in the inspector hierarchy

  • Optional onEndCollide?: ((target) => void)
      • (target): void
      • Parameters

        • target: Collider

        Returns void

  • Optional onStartCollide?: ((target) => void)
      • (target): void
      • Parameters

        • target: Collider

        Returns void

  • Optional position?: Vec3

    initial position, changing this value after init will teleport object

  • Optional rotation?: Vec3

    initial rotation, changing this value after init will teleport object