Skip to main content
Version: Next

Mount Interaction

Description

This is used to denote a relationship between an agent and a mount within a scene. If this is present any movement will be applied to the mount object and not to the agent.

Interface

Type
IMountInteractionService

Inherits

Type
N/A

Properties

NameType
seatServiceISeatService
controllerIMoveApplicator
previousParentTransform

Public Methods

NameParametersReturn TypeDescription
MountInteractionServiceIAgentService agent, ISeatService seatService, IMoveApplicator controllerMountInteractionServiceA constructor for MountInteractionService.
MoveToVector3 positionvoidUsed to apply movement to the mount.
GetRemainingDistanceN/AfloatUsed to find out how far the mount is from the goal. If no goal will return 0.
GetSeatServiceN/AISeatServiceReturns the seatService.
GetPreviousParentOfAgentN/ATransformUsed on dismount to set the mount parent back.