Restore RigidBody2/3D, SoftBody names in physics
This commit is contained in:
@ -6,7 +6,7 @@ extends _BASE_
|
||||
const SPEED = 300.0
|
||||
const JUMP_VELOCITY = -400.0
|
||||
|
||||
# Get the gravity from the project settings to be synced with RigidDynamicBody nodes.
|
||||
# Get the gravity from the project settings to be synced with RigidBody nodes.
|
||||
var gravity: int = ProjectSettings.get_setting("physics/2d/default_gravity")
|
||||
|
||||
|
||||
|
||||
@ -6,7 +6,7 @@ extends _BASE_
|
||||
const SPEED = 5.0
|
||||
const JUMP_VELOCITY = 4.5
|
||||
|
||||
# Get the gravity from the project settings to be synced with RigidDynamicBody nodes.
|
||||
# Get the gravity from the project settings to be synced with RigidBody nodes.
|
||||
var gravity: float = ProjectSettings.get_setting("physics/3d/default_gravity")
|
||||
|
||||
|
||||
|
||||
@ -8,7 +8,7 @@ public partial class _CLASS_ : _BASE_
|
||||
public const float Speed = 300.0f;
|
||||
public const float JumpVelocity = -400.0f;
|
||||
|
||||
// Get the gravity from the project settings to be synced with RigidDynamicBody nodes.
|
||||
// Get the gravity from the project settings to be synced with RigidBody nodes.
|
||||
public float gravity = ProjectSettings.GetSetting("physics/2d/default_gravity").AsSingle();
|
||||
|
||||
public override void _PhysicsProcess(float delta)
|
||||
|
||||
@ -8,7 +8,7 @@ public partial class _CLASS_ : _BASE_
|
||||
public const float Speed = 5.0f;
|
||||
public const float JumpVelocity = 4.5f;
|
||||
|
||||
// Get the gravity from the project settings to be synced with RigidDynamicBody nodes.
|
||||
// Get the gravity from the project settings to be synced with RigidBody nodes.
|
||||
public float gravity = ProjectSettings.GetSetting("physics/3d/default_gravity").AsSingle();
|
||||
|
||||
public override void _PhysicsProcess(float delta)
|
||||
|
||||
Reference in New Issue
Block a user