How to calculate rayToWorld for rayTest knowing rigid body
How to calculate rayToWorld for rayTest knowing rigid body
Good afternoon. Doing an imitation of the ultrasonic range finder. To measure distance using rayTest. The housing rangefinder - a rigid body with respect to which the measured distance. As rayFromWorld use Body-> getCenterOfMassPosition (), and how to calculate rayToWorld not understand.
Re: How to calculate rayToWorld for rayTest knowing rigid bo
If I understand your problem correctly you want to measure the distance between your object or a point and other objects in the world.I'm new to bullet physic but in other engines to solve such problem we uses shape casting to find nearest point of object to a specific point in world.some times ray casting to the center of objects do not return the nearest point of that object.