Function ambient_api_core::core::physics::components::angular_velocity
source · pub fn angular_velocity() -> Component<Vec3>
Expand description
Angular velocity: Angular velocity (radians/second) of this entity in the physics scene.
Updating this component will update the entity’s angular velocity in the physics scene.
Note that changing this component will forcibly set the velocity; changing the velocity every frame may lead to unexpected behavior, like improper physics or collisions failing.
If you need to adjust the velocity each frame, consider applying an impulse using physics
functions instead.
Attributes: Debuggable, Networked, Store