GSAITargetAcceleration

Extends:

Description

A desired linear and angular amount of acceleration requested by the steering system.

Properties

TypeName
Vector3linear
floatangular

Methods

TypeName
voidfunc set_zero() -> void
voidfunc add_scaled_accel(accel: GSAITargetAcceleration, scalar: float) -> void
floatfunc get_magnitude_squared() -> float
floatfunc get_magnitude() -> float

Property Descriptions

linear

var linear: Vector3

Linear acceleration

angular

var angular: float

Angular acceleration

Method Descriptions

set_zero

func set_zero() -> void

Sets the linear and angular components to 0.

add_scaled_accel

func add_scaled_accel(accel: GSAITargetAcceleration, scalar: float) -> void

Adds accel’s components, multiplied by scalar, to this one.

get_magnitude_squared

func get_magnitude_squared() -> float

Returns the squared magnitude of the linear and angular components.

get_magnitude

func get_magnitude() -> float

Returns the magnitude of the linear and angular components.