Is there way to use a raycast and use the scans hitpoint coordinates to teleport the player?
Sure, you can grab the point that is returned as a result from the raycast and pass it to the teleport method.
1 Like
how do i make a variable for the raycast results without making a attribute for it?
Here is an example:
var result = this.app.systems.rigidbody.raycastFirst(from, to);
if (result) {
var point = result.point;
}
2 Likes
thanks