Click or drag to resize

KinematicBodySetAxisLock Method

Note: This API is now obsolete.

Locks or unlocks the specified axis depending on the value of lock. See also MoveLockX, MoveLockY and MoveLockZ.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
[ObsoleteAttribute("SetAxisLock is deprecated. Use the MoveLockZ property instead.")]
public void SetAxisLock(
	PhysicsServerBodyAxis axis,
	bool lock
)

Parameters

axis
Type: GodotPhysicsServerBodyAxis

[Missing <param name="axis"/> documentation for "M:Godot.KinematicBody.SetAxisLock(Godot.PhysicsServer.BodyAxis,System.Boolean)"]

lock
Type: SystemBoolean

[Missing <param name="lock"/> documentation for "M:Godot.KinematicBody.SetAxisLock(Godot.PhysicsServer.BodyAxis,System.Boolean)"]

See Also