API reference
API reference
Select your platform
No SDKs available
No versions available

JoystickPoseMovement Class

Extends IMovement
Represents an IMovement that uses joystick input to control the position and rotation of an object.
This class provides methods for moving the object to a target pose, updating the target pose, stopping the movement, and adjusting the pose based on joystick input.

Fields

Pose Pose[Get]
bool Stopped[Get]

Constructors & Destructors

Initializes a new instance of the JoystickPoseMovement class.
This constructor sets the movement properties, such as the controller, movement speed, rotation speed, minimum distance, and maximum distance.
Parameters
controller
The controller to use for the movement.
moveSpeed
The speed at which to move the object.
rotationSpeed
The speed at which to rotate the object.
minDistance
The minimum distance along the Z-axis for the grabbed object.
maxDistance
The maximum distance along the Z-axis for the grabbed object.
Moves the object to the specified target pose using the movement speed and rotation speed.
The target pose is used as a reference point to calculate the movement delta.
Parameters
target
The target pose to move to.
Updates the target pose of the movement to the specified pose.
This method does not affect the current pose of the object.
Parameters
target
The new target pose.
Stops the movement and sets the current pose to the specified pose.
This method resets the movement state and sets the current pose to the specified value.
Parameters
pose
The pose to set as the current pose.
Updates the movement based on the current joystick input.
This method adjusts the pose of the object based on the joystick input and movement speed.
Adjusts the pose of the movement based on the current joystick input.
This method calculates the movement delta based on the joystick input and adjusts the pose accordingly. It also takes into account the movement speed, rotation speed, minimum distance, and maximum distance.
void InjectController
( IController controller )
Did you find this page helpful?