CameraCollision3D class
Keeps a virtual camera out of walls: on the same entity as an
OrbitFollowComponent (or any body stage), it pulls the camera in
towards its target when something solid is between them, and eases it
back out once the way is clear.
Constructors
Properties
- componentType → Type
-
Type identifier for this component
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- layerMask ↔ int
-
The physics layers that block it.
getter/setter pair
- minDistance ↔ double
-
The nearest it comes to the point it looks from.
getter/setter pair
- offset ↔ Vector3
-
Where it looks from, from the target, when the camera has no orbit
pivot to say (-Y is up).
getter/setter pair
- radius ↔ double
-
How thick the camera is, in metres: it keeps this far from a wall.
getter/setter pair
- recover ↔ double
-
Seconds to ease back out once clear; pulling in is immediate.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onAttach(
EntityId entityId) → void -
Called when this component is added to an entity.
inherited
-
onDetach(
EntityId entityId) → void -
Called when this component is removed from an entity.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited