Click or drag to resize

KinematicBodyMoveAndSlideWithSnap Method

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Vector3 MoveAndSlideWithSnap(
	Vector3 linearVelocity,
	Vector3 snap,
	Vector3? upDirection = null,
	bool stopOnSlope = false,
	int maxSlides = 4,
	float floorMaxAngle = 0.785398f,
	bool infiniteInertia = true
)

Parameters

linearVelocity
Type: GodotVector3

[Missing <param name="linearVelocity"/> documentation for "M:Godot.KinematicBody.MoveAndSlideWithSnap(Godot.Vector3,Godot.Vector3,System.Nullable{Godot.Vector3},System.Boolean,System.Int32,System.Single,System.Boolean)"]

snap
Type: GodotVector3

[Missing <param name="snap"/> documentation for "M:Godot.KinematicBody.MoveAndSlideWithSnap(Godot.Vector3,Godot.Vector3,System.Nullable{Godot.Vector3},System.Boolean,System.Int32,System.Single,System.Boolean)"]

upDirection (Optional)
Type: SystemNullableVector3
If the parameter is null, then the default value is new Vector3(0, 0, 0)
stopOnSlope (Optional)
Type: SystemBoolean

[Missing <param name="stopOnSlope"/> documentation for "M:Godot.KinematicBody.MoveAndSlideWithSnap(Godot.Vector3,Godot.Vector3,System.Nullable{Godot.Vector3},System.Boolean,System.Int32,System.Single,System.Boolean)"]

maxSlides (Optional)
Type: SystemInt32

[Missing <param name="maxSlides"/> documentation for "M:Godot.KinematicBody.MoveAndSlideWithSnap(Godot.Vector3,Godot.Vector3,System.Nullable{Godot.Vector3},System.Boolean,System.Int32,System.Single,System.Boolean)"]

floorMaxAngle (Optional)
Type: SystemSingle

[Missing <param name="floorMaxAngle"/> documentation for "M:Godot.KinematicBody.MoveAndSlideWithSnap(Godot.Vector3,Godot.Vector3,System.Nullable{Godot.Vector3},System.Boolean,System.Int32,System.Single,System.Boolean)"]

infiniteInertia (Optional)
Type: SystemBoolean

[Missing <param name="infiniteInertia"/> documentation for "M:Godot.KinematicBody.MoveAndSlideWithSnap(Godot.Vector3,Godot.Vector3,System.Nullable{Godot.Vector3},System.Boolean,System.Int32,System.Single,System.Boolean)"]

Return Value

Type: Vector3

[Missing <returns> documentation for "M:Godot.KinematicBody.MoveAndSlideWithSnap(Godot.Vector3,Godot.Vector3,System.Nullable{Godot.Vector3},System.Boolean,System.Int32,System.Single,System.Boolean)"]

See Also