calculating orientation and approaching
Hello,
I am working on a collision avoidance project with avatars. I am trying to find out the angle 2 avatars are walking at to eachother. What I do is: - I take the Euler orientation of the avatar (x-part) - I calculate the angle between avatar#1 and avatar#2 with vizmat.angleToPoint - 100% sure that both the Euler and angleToPoint are North oriented, I subtract them. If the result lies close to 0 then I should know that avatar#1 is walking to avatar#2. I am simulating this in the code you can read here. The problem is though that the values are correct when the objects/avatars are far away from each other, but they produce, IMO, wrong results when they are getting closer. If someone could help me achieve or give me a push into the correct direction, I would be grateful :) Code:
import viz |
I solved my problem with ray-tracing, you can leave this topic open if you want to solve it for others :)
|
All times are GMT -7. The time now is 02:10 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC