Page 1 of 1

Moving Platform Questions

Posted: Fri Mar 30, 2012 1:20 am
by Stevemata
In the character playground demo there is an elevator, why does it overshoot its end points?

Re: Moving Platform Questions

Posted: Fri Mar 30, 2012 1:22 am
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.

Re: Moving Platform Questions

Posted: Fri Mar 30, 2012 1:26 am
by Stevemata
Okay, what would be the best way to stop it from overshooting its endpoints?

Re: Moving Platform Questions

Posted: Fri Mar 30, 2012 1:34 am
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.

Re: Moving Platform Questions

Posted: Fri Mar 30, 2012 1:36 am
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.

Re: Moving Platform Questions

Posted: Fri Mar 30, 2012 2:35 am
by Stevemata
Awesome dude. Bepu is awesome, great work.

Re: Moving Platform Questions

Posted: Fri Mar 30, 2012 2:50 am
by Norbo
Thanks :)