pub fn add_force_at_position(entity: EntityId, force: Vec3, position: Vec3)
Available on crate feature server only.
Expand description

Applies a force (a Vec3) at a given position (a Vec3) to the entity (an EntityId) specified.

force is a vector in world space, which means it has both direction and magnitude. To push objects upwards (positive Z) with strength 3,000, you would supply a force of vec3(0.0, 0.0, 3_000.0) or Vec3::Z * 3_000.0 (either are equivalent.)

position is a position in world space, it typically should fall on the surface or interior of an object for realistic results.