ricardo_arango
05-02-2006 16:50:44
I need to have items that can be picked up, an then thrown, so my guess for doing that is:
- Create the ogrenewt object with infinite mass.
- When the item is picked up, manually move it using an animation.
- When it is thrown, change it's mass to something different.
- When it stops, change it's mass again to infinite.
So:
1. Is this the correct way of doing it?
2. How is the mass set to inifite?
3. How to tell if an object has stopped?
4. If I define a radius, in which the object is pickable, can I use OgreNewt to see if my character is within that radius, or should I just do it by hand measuring the distance?
- Create the ogrenewt object with infinite mass.
- When the item is picked up, manually move it using an animation.
- When it is thrown, change it's mass to something different.
- When it stops, change it's mass again to infinite.
So:
1. Is this the correct way of doing it?
2. How is the mass set to inifite?
3. How to tell if an object has stopped?
4. If I define a radius, in which the object is pickable, can I use OgreNewt to see if my character is within that radius, or should I just do it by hand measuring the distance?