Advertisement

rotation question

Started by March 16, 2002 03:40 AM
-1 comments, last by mtrx 22 years, 11 months ago
hi everyone, i got a problem in handling object rotation heres the scenario there are 2 objects (meshes). one object is on the floor, and the second object is in my ''hand'', and moves around the screen. the object in my hand is raised from the floor a few units. if the 2 objects collide, the hand object will hit the other object right in the middle of its height. now, i need to simulate the object (ob2) tilting and falling down after being hit by the other object (ob1). i cant use keyframes to store object position because the rendering has to be done in real time. my question is: whats the easiest way to simulate this? i need ob2 to tilt according to the force applied by ob1. that means that if ob2 tilts a certain degree and force is removed, it should return to its upright position, and if its tilted more that 45 degrees, it should continue to fall onto its side. i''d appreciate any source code or algorithms that can accomplish this as ive tried a few other ways but it doesnt seem to work. im coding in visual basic + directx by the way, so if you guys could help me i''d really appreciate it.

This topic is closed to new replies.

Advertisement