reckfellENGINE

StaticBody3D

A 3D physics body that can't be moved by external forces. When moved manually, it doesn't affect other bodies in its path.

On this page
class StaticBody3DReckfellSharpInherits PhysicsBody3D

A 3D physics body that can't be moved by external forces. When moved manually, it doesn't affect other bodies in its path.

A static 3D physics body. It can't be moved by external forces or contacts, but can be moved manually by other means such as code, AnimationMixers (with AnimationMixer.CallbackModeProcess set to AnimationMixer.AnimationCallbackModeProcess.Physics), and RemoteTransform3D. When StaticBody3D is moved, it is teleported to its new position without affecting other physics bodies in its path. If this is not desired, use AnimatableBody3D instead. StaticBody3D is useful for completely static objects like floors and walls, as well as moving surfaces like conveyor belts and circular revolving platforms (by using StaticBody3D.ConstantLinearVelocity and StaticBody3D.ConstantAngularVelocity).

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Constructors1

StaticBody3DConstructor
# StaticBody3D
C#
public StaticBody3D();

Properties3

ConstantAngularVelocityProperty
# ConstantAngularVelocity
C#
public Vector3 ConstantAngularVelocity { get; set; }

The body's constant angular velocity. This does not rotate the body, but affects touching bodies, as if it were rotating.

ConstantLinearVelocityProperty
# ConstantLinearVelocity
C#
public Vector3 ConstantLinearVelocity { get; set; }

The body's constant linear velocity. This does not move the body, but affects touching bodies, as if it were moving.

PhysicsMaterialOverrideProperty
# PhysicsMaterialOverride
C#
public PhysicsMaterial PhysicsMaterialOverride { get; set; }

The physics material override for the body. If a material is assigned to this property, it will be used instead of any other physics material, such as an inherited one.

Methods6

GetConstantAngularVelocityVector3
# GetConstantAngularVelocity
C#
public Vector3 GetConstantAngularVelocity();
Returns Vector3
GetConstantLinearVelocityVector3
# GetConstantLinearVelocity
C#
public Vector3 GetConstantLinearVelocity();
Returns Vector3
GetPhysicsMaterialOverridePhysicsMaterial
# GetPhysicsMaterialOverride
C#
public PhysicsMaterial GetPhysicsMaterialOverride();
Returns PhysicsMaterial
SetConstantAngularVelocityvoid
# SetConstantAngularVelocity
C#
public void SetConstantAngularVelocity(Vector3 vel);
Parameters
NameTypeDefault
velVector3—
SetConstantLinearVelocityvoid
# SetConstantLinearVelocity
C#
public void SetConstantLinearVelocity(Vector3 vel);
Parameters
NameTypeDefault
velVector3—
SetPhysicsMaterialOverridevoid
# SetPhysicsMaterialOverride
C#
public void SetPhysicsMaterialOverride(PhysicsMaterial physicsMaterialOverride);
Parameters
NameTypeDefault
physicsMaterialOverridePhysicsMaterial—
Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.