Teleport Target
→ Teleport Target API
The Humanoid Teleport Target provides more control to where a player can teleport than the basic Teleporter and can be used in combination with a generic Interaction Pointer.
Setup
The Humanoid Teleport Target can be placed on a static or moving Rigidbody object with a collider. It has been implemented as a Event Trigger and will teleport when an PointerDown event is received.
It has the following parameters:
Teleport Root | if this is enabled the root of the transform (the topmost transform) will be teleported instead of the transform itself. |
Check Collision | if enabled this will check if the location to which the pointer is pointing contains a collider. Teleporting will only take place if no collider has been found. The check is executed using a capsule of 2 meters/units high and 0.2 meters/units radius. |
Movement Type | determines how the Transform is moved to the Target Point. Teleport = direct placement a the target point. Dash = a quick movement is a short time from the originating point to the target point. |
Target Pos/Rot. | when set to Pointer the transform will be teleported to the endpoint of the InteractionPointer. When set to Transform the transform will be sent to the position/rotation of the Target Transform. If the Target Transform is empty the position/rotation of the Transform of the Teleport Target is used. |
Target Transform | If Target Pos/Rot is set to Transform this will determine the position and rotation of the transform to teleport. Next to that the teleported transform will become a child of this Target Transform after teleporting. |
Pose | is an optional Pose of the Humanoid after it has been teleported. This enables you to teleport to a different pose like a seating pose for instance. |
Enable Foot Animator | This will enable or disable the foot animator after teleporting. For poses like seating a walking foot animation is not required. In such cases the foot animator can be switch off with this setting. |