I'm using A-Frame Teleport component. Is there a way to stop teleport from happening through objects? (for example, when i point the controller to a wall, i can teleport through that wall!)
0
votes
1 Answers
0
votes
Use the collisionEntities property from the teleport controls component. Example: <a-entity teleport-controls="collisionEntities: .scenery". Then, add the "scenery" class to your ground AND your walls. By default, the raycaster will only allow teleporting onto objects within 45ยบ of horizontal, so collision with the walls will block collisions with the floor.