I’m trying to do a raycast from a cube. I’m using the function raycastFirst() so my line of code is:
var result = this.app.systems.rigidbody.raycastFirst(this.entity.getPosition(), pc.Vec3.DOWN);
It’s supposed to return a plane that it’s directly under the cube (actually it’s surrounded by planes in every direction for testing so it should hit any of them) but it always returns null. I already applied the rigidbody component to the planes.