Page MenuHomeFeedback Tracker

setVehiclePosition teleports to terrain surface when position is out of map range
Closed, ResolvedPublic

Description

Title

Details

Severity
None
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce
  1. eden editor: Virtual Reality
  1. place some platform to stand (like Land_VR_Block_02_F) at [0,-100,10] and [0-100,10], just make sure its in midair
  1. execute codes and see results:
player setVehiclePosition [[0,-100,20], [], 0, "NONE"];                       //teleports to terrain surface
player setVehiclePosition [[0,-100,20], [], 0, "CAN_COLLIDE"];          //teleports to object surface
player setVehiclePosition [[0,100,20], [], 0, "NONE"];                        //object surface
player setVehiclePosition [[0,100,20], [], 0, "CAN_COLLIDE"];           //object surface
Additional Information

Reproducible in every map.

basically in VR map, if -10 < posValue < worldSize+30, posValue means x or y value in position will be fine, but if beyond this range, you will be teleported to ground surface instead of object surface

This might be the reason of:
When a spawn marker is placed out of map, and placed on a ship, players will spawn in the sea instead of ship surface

Event Timeline

dedmen closed this task as Resolved.Sep 16 2024, 1:43 PM
dedmen claimed this task.
dedmen added a subscriber: dedmen.

Objects outside of map bounds are not supported.