Replace XML codeblock spaces with tabs
This commit is contained in:
@ -183,19 +183,19 @@
|
||||
@onready var ball = $Ball
|
||||
|
||||
func get_ball_inertia():
|
||||
return 1.0 / PhysicsServer2D.body_get_direct_state(ball.get_rid()).inverse_inertia
|
||||
return 1.0 / PhysicsServer2D.body_get_direct_state(ball.get_rid()).inverse_inertia
|
||||
[/gdscript]
|
||||
[csharp]
|
||||
private RigidBody2D _ball;
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
_ball = GetNode<RigidBody2D>("Ball");
|
||||
_ball = GetNode<RigidBody2D>("Ball");
|
||||
}
|
||||
|
||||
private float GetBallInertia()
|
||||
{
|
||||
return 1.0f / PhysicsServer2D.BodyGetDirectState(_ball.GetRid()).InverseInertia;
|
||||
return 1.0f / PhysicsServer2D.BodyGetDirectState(_ball.GetRid()).InverseInertia;
|
||||
}
|
||||
[/csharp]
|
||||
[/codeblocks]
|
||||
|
||||
Reference in New Issue
Block a user