Optional
collider: ColliderObservable that notifies when a collider is added to the body
Observable that notifies when a collider is removed from the body
Optional
Readonly
dependenciesOptionally list any component types this component depends on If the owner entity does not have these components, new components will be added to the entity
Only components with zero-arg constructors are supported as automatic component dependencies
Optional
Readonly
optionalOptional
ownerReadonly
typeType of this component, must be a unique type among component types in you game.
Return world space bounds
Return local space bounds
Clones any properties on this component, if that property value has a clone()
method it will be called
Collide component with another
Set the collider geometry
the collider you set
Sets up a box geometry based on the current bounds of the associated actor of this physics body.
If no width/height are specified the body will attempt to use the associated actor's width/height.
By default, the box is center is at (0, 0) which means it is centered around the actors anchor.
Sets up a circle collision geometry as the only collider with a specified radius in pixels.
By default, the box is center is at (0, 0) which means it is centered around the actors anchor.
Setups up a CompositeCollider which can define any arbitrary set of excalibur colliders
Sets up an Edge|edge collision geometry with a start point and an end point relative to the anchor of the associated actor of this physics body.
By default, the box is center is at (0, 0) which means it is centered around the actors anchor.
Sets up a polygon collision geometry based on a list of of points relative to the anchor of the associated actor of this physics body.
Only convex polygon definitions are supported.
By default, the box is center is at (0, 0) which means it is centered around the actors anchor.
Components are containers for state in Excalibur, the are meant to convey capabilities that an Entity possesses
Implementations of Component must have a zero-arg constructor to support dependencies