saejox
04-12-2011 21:22:15
Hi,
I like make my Npcs jump certain distances.
When they encounter a rock they will jump over it.
i cant find addForce(Vec3) or similar function for Critter::CharacterController
Do you know how can i achieve this?
mistigrii33
06-12-2011 14:56:48
You can make a Character Controller jumping by using the InputHelper. Look at the tutorial, there is what you need
saejox
06-12-2011 19:27:09
I checked critter and nxogre::charactercontroller source codes.
it looks like characters much different than normal actors.
there is only one way to implement jump; using timers and changing object positions by hand. and existing jump() function is not what i want. i need to implement a new one.
betajaen
07-12-2011 07:55:17
Why?
The jump function I wrote is very accurate.
saejox
07-12-2011 12:58:35
Why?
The jump function I wrote is very accurate.
i need air control, multi-level jumps and modifiable jump height for ai creatures.
betajaen
07-12-2011 17:55:51
You probably have to modify the AnimatedCharacterController jump code then, rather rolling your own as an addon. Especially by setting the positions by hand - which won't work BTW.