#Simulating a unity function into cv2

7 messages · Page 1 of 1 (latest)

cloud plover
#

I could use a bit of help. There is a unity function called GameObject.AddForceAtPosition( Force, Position). What it does is it acts like velocity set but acts like how you hit an object from that point.
I mainly just want the calculated rotation from the position and calculated velocity from the position

Any help would be appreciated!

cloud plover
low pecan
cloud plover
#

I think thats all I needed to get it to work. This video is what the function does. With force is (0,5,0) iirc

low pecan
#

Sounds like Velocity Reflect

#

Direction is surface normal

cloud plover
#

Unity suggested to get the position close to the normals but that isnt how it calculates afaik