Moving Platform Questions

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
Stevemata
Posts: 33
Joined: Sat Mar 17, 2012 11:11 pm

Moving Platform Questions

Post by Stevemata »

In the character playground demo there is an elevator, why does it overshoot its end points?
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Moving Platform Questions

Post by Norbo »

I set it up to use a kind of curve which adds some smooth acceleration and the overshooting, for no real reason. You can use any kind of curve (or none at all) to control objects.
Stevemata
Posts: 33
Joined: Sat Mar 17, 2012 11:11 pm

Re: Moving Platform Questions

Post by Stevemata »

Okay, what would be the best way to stop it from overshooting its endpoints?
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Moving Platform Questions

Post by Norbo »

Change the curve from a CardinalSpline3D to a LinearInterpolationCurve3D. Note that some of the control points will be rendered redundant by this change.
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Moving Platform Questions

Post by Norbo »

I should again emphasize that these curves are just one way to handle the motion of a kinematic entity; they boil down to setting the velocity properties on the entities. You can set velocities directly if it's more convenient.
Stevemata
Posts: 33
Joined: Sat Mar 17, 2012 11:11 pm

Re: Moving Platform Questions

Post by Stevemata »

Awesome dude. Bepu is awesome, great work.
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Moving Platform Questions

Post by Norbo »

Thanks :)
Post Reply