RigidBody3D
Inherits: PhysicsBody3D < CollisionObject3D < Node3D < Node < ObjectDescription
A 3D physics body that is moved by a physics simulation. RigidBody3D implements full 3D physics. It cannot be controlled directly; instead, you must apply forces to it.Properties
float
default:"1.0"
The body’s mass.
Vector3
default:"Vector3(0, 0, 0)"
The body’s linear velocity.
Vector3
default:"Vector3(0, 0, 0)"
The RigidBody3D’s rotational velocity in radians per second.
float
default:"1.0"
Multiplies the gravity applied to the body.
bool
default:"false"
If true, the body is frozen. Gravity and forces are not applied.
Methods
apply_central_impulse
apply_impulse
apply_force
apply_torque
Signals
body_entered(body: Node)
Emitted when a body enters into contact with this one.body_exited(body: Node)
Emitted when a body exits contact with this one.Example Usage
- GDScript
- C#