Physics improvement
Re: Physics improvement
Do we have determined yet how to handle the walking speed of NPCs? In MW it can vary widely and as I see it, this parameter is tightly coupled with the stuff you are planning to work on. Or is that already implemented?
Re: Physics improvement
Tried different values for gravity, still having the falling problem. I need to look more at aedra's physics.
- ElderTroll
- Posts: 499
- Joined: 25 Jan 2012, 07:01
Re: Physics improvement
Being someone who often goes for the easiest solution I have some suggestions, 1) google the basic problems you are having to see if others have encountered/solved them, 2) check Aedra change logs to see if there are major differences in the implementation of bullet, 3) ask Tom lopes from Aedra for his advice, and 4) post on the ogre or bullet forums.
I'm a lazy man Jhooks. Good luck!
I'm a lazy man Jhooks. Good luck!
Re: Physics improvement
It's normal. But I think we should determine gravity by the fall velocity in morrowind (we cannot set the gravity we want, we have to pick up the right one so that the PC fall at the same speed than in morrowind).Tried different values for gravity, still having the falling problem. I need to look more at aedra's physics.
Edit: I prefer to "finish" the Dialogue task before starting again with bullet, so for the moment, i won't code anything.
- sirherrbatka
- Posts: 2159
- Joined: 07 Aug 2011, 17:21
Re: Physics improvement
@GUS
Do you want me to try measure falling velocity in MW? I can do this so we will be able to calculate acceleration.
Do you want me to try measure falling velocity in MW? I can do this so we will be able to calculate acceleration.
Re: Physics improvement
That would be cool! Be aware that there might be some speed cap.
- ElderTroll
- Posts: 499
- Joined: 25 Jan 2012, 07:01
Re: Physics improvement
Here's Tom's Aedra post on the bullet physics forums from last year.
and here's OpenMW's in case you want to update it (it's like 3 and a half years old).
http://bulletphysics.org/Bullet/phpBB3/ ... lit=openmw
http://bulletphysics.org/Bullet/phpBB3/ ... =17&t=6353Versions of Project Aedra prior to r110 use purely raycasted collision detection without Bullet. Versions r110 and greater use *a modified version of* Bullet Collision and Linear Math.
and here's OpenMW's in case you want to update it (it's like 3 and a half years old).
http://bulletphysics.org/Bullet/phpBB3/ ... lit=openmw
- sirherrbatka
- Posts: 2159
- Joined: 07 Aug 2011, 17:21
Re: Physics improvement
I'm aware of the speed cap gus, I will just try to use fall long enough to have a good time but not too long. The cap seems to be quite high anyway. Going to do the job right now
Three attempts and get something like 650 u/s^2 but it's flawed. I will make bigger (like 6 times bigger) jumps and calculate proper value both with cap.
9,8 m/s^2 is around 690 u/s^2
Three attempts and get something like 650 u/s^2 but it's flawed. I will make bigger (like 6 times bigger) jumps and calculate proper value both with cap.
9,8 m/s^2 is around 690 u/s^2
Re: Physics improvement
Elder- Starting a new thread to discuss the bullet forum post.
Re: Physics improvement
Woot!! I think I got rid of the falling bug.
internalCollisionShape = new btBoxShape(btVector3(14.64f * 2.0f, 33.25f * 2.0f, 14.24f * 2.0f)); (From Project Aedra)
Doing it this way instead of btCapsuleShapeZ seems to get rid of the falls.
mCharacter = new btKinematicCharacterController( internalGhostObject,internalGhostObject,btScalar( 40 ),1,4,20,9.8,0.2 );
I don't know anything about external and internal capsule shapes (or bullet in general), but setting them both to the same thing is probably wrong. It works though.
There are slight npc collision problems, I am still testing things on the animation2 branch. I know I need to make a new branch from master, and that will probably solve these problems. Will make the new branch soon.
internalCollisionShape = new btBoxShape(btVector3(14.64f * 2.0f, 33.25f * 2.0f, 14.24f * 2.0f)); (From Project Aedra)
Doing it this way instead of btCapsuleShapeZ seems to get rid of the falls.
mCharacter = new btKinematicCharacterController( internalGhostObject,internalGhostObject,btScalar( 40 ),1,4,20,9.8,0.2 );
I don't know anything about external and internal capsule shapes (or bullet in general), but setting them both to the same thing is probably wrong. It works though.
There are slight npc collision problems, I am still testing things on the animation2 branch. I know I need to make a new branch from master, and that will probably solve these problems. Will make the new branch soon.