Havok Character Controller jump speed?

Havok Character Controller jump speed?

Does anyone know how to change the jump speed or force of Havok Character Controllers (the phantom version, if it matters)?

The manual, header files and the internet don't seem to have the answer.

Thanks!

publicaciones de 4 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.

Hi TreePenguin,
Are you calling hkpCharacterProxy::integrate() directly? If so, you should just take some upward velocity into account when you're determining the desired velocity, and then call

character->setLinearVelocity(desiredVelocity);

before you call integrate().

If you're using the character contexts and state machines from the demos, I think you want to call hkpCharacterStateJumping::setJumpHeight. That doesn't set the speed directly, but the speed should depend on the gravity and jump height.

-Chris

Thanks, yeah sorry, I'm using the contexts from the demo, hkpCharacterStateJumping::setJumpHeight was indeed what I needed.

Kind of silly, I didn't notice the standard states where actually subclasses of hkpCharacterState. So I didn't think twice when I looked at hkpCharacterState and didn't find what I needed.

Anyway, thanks a lot.

No worries. Now the internet has the answer :)

Deje un comentario

Por favor inicie sesión para agregar un comentario. ¿No es socio? Únase ya