Physics improvement
- ElderTroll
- Posts: 499
- Joined: 25 Jan 2012, 07:01
Re: Physics improvement
Have you sought out advice on the bullet physics help forum? They might know a solution.
Re: Physics improvement
Love it. Would you mind telling me how you were moving the camera straight up and down at the beginning of the video?jhooks1 wrote:Anyways here is the video I said I would upload before http://www.youtube.com/watch?v=1TBUrHbS ... e=youtu.be
Physics are off at the beginning of the video, then I turn them on.
Re: Physics improvement
Its part of aedra's player movement (pmove) code, so it's only in my physicsaedra2 branch.
Re: Physics improvement
I see, is that something I'd be able to easily download and build, or is it something I wouldn't have access to?
Might be useful for video making, is why I ask.
Keep up the good work with the physics!
Might be useful for video making, is why I ask.
Keep up the good work with the physics!
Re: Physics improvement
Teehee. I used to do QA professionally, for some value of professionally, so I live for this stuff.jhooks1 wrote: Anyways here is the video I said I would upload before http://www.youtube.com/watch?v=1TBUrHbS ... e=youtu.be
- sirherrbatka
- Posts: 2159
- Joined: 07 Aug 2011, 17:21
Re: Physics improvement
You still have quite a lot of time jhooks1.
Re: Physics improvement
jhooks: the up axis is the Z axis.
Try changing in pmove.cpp line 194 to 201:
to
Try changing in pmove.cpp line 194 to 201:
Code: Select all
endVelocity.y -= pm->ps.gravity * pml.frametime;
// pm->ps->velocity = avg(pm->ps->velocity.z, endVelocity.z)
//pm->ps->velocity[2] = ( pm->ps->velocity[2] + endVelocity[2] ) * 0.5;
pm->ps.velocity.y= (pm->ps.velocity.y + endVelocity.y) * 0.5f;
//primal_velocity[2] = endVelocity[2];
primal_velocity.y = endVelocity.y;
Code: Select all
endVelocity.z -= pm->ps.gravity * pml.frametime;
pm->ps.velocity.y= (pm->ps.velocity.z + endVelocity.z) * 0.5f;
primal_velocity.z = endVelocity.z;
Re: Physics improvement
Got the gravity changed to going down, but it still acts like a bouncy ball.
- sirherrbatka
- Posts: 2159
- Joined: 07 Aug 2011, 17:21
Re: Physics improvement
Maybe tuning parameters like friction can help? At least it's simple and worth a shoot.