urosidoki
10-01-2011 21:04:51
Hi guys.
I have been working so hard in a little prototype game.
I have my AI working nice, but I am using a kinematic object. This means that I dont have gravity scene forces applying on this actors ( because are kinematic ).
I think there is a way to use dinamyc actors union with addForce( ... ) and NX_BF_FROZEN_POS_Y, the problem is that when I use this:
mActor->addForce( forceAgeia, NX_SMOOTH_VELOCITY_CHANGE );
my player always go further from the destiny position.
I am using steering behaviour to move player, but I dont know how can I configure correctly the addForce function to make the movement accurate. I would like the player moves constantly or at least that he stops just in the destiny point......is it possible?
Any suggestion?
PD: I dont want use character controllers for the AI because is expensive.
Kind regards
I have been working so hard in a little prototype game.
I have my AI working nice, but I am using a kinematic object. This means that I dont have gravity scene forces applying on this actors ( because are kinematic ).
I think there is a way to use dinamyc actors union with addForce( ... ) and NX_BF_FROZEN_POS_Y, the problem is that when I use this:
mActor->addForce( forceAgeia, NX_SMOOTH_VELOCITY_CHANGE );
my player always go further from the destiny position.
I am using steering behaviour to move player, but I dont know how can I configure correctly the addForce function to make the movement accurate. I would like the player moves constantly or at least that he stops just in the destiny point......is it possible?
Any suggestion?
PD: I dont want use character controllers for the AI because is expensive.
Kind regards