Hello @mlbonniec , thank you for your question! I believe what you are looking for is raycast(from:to:query:mask:relativeTo:). You can perform a raycast on the Scene that an Entity belongs to. If you configure an entity with ManipulationComponent, you can subscribe to the event ManipulationEvents.WillRelease to execute code when a person releases an object. Then, you can perform a raycast on the scene downward from the entity's position and place the entity on the closest surface. Here's a quick implementation I threw together demonstrating how to position an Entity on raycast hit: // This code runs when a person releases an object. func handleManipulationWillRelease(event: ManipulationEvents.WillRelease) { // Start the raycast from the position of the entity when it is released. let raycastStart = event.entity.position // End the raycast one meter below the starting point (surfaces further away than 1m will be ignored). let raycastEnd = raycastStart + [0, -1, 0] // Perform the rayc
Topic:
Spatial Computing
SubTopic:
General
Tags: