MindCalamity
21-09-2011 21:23:50
Sorry, I thought that the Character Controller automatically climbed stairs, but that doesn't seem to be the case, what do I need to do to make it climb ?
Sorry for the newbie questions lately... Me + Physics != Something Good
betajaen
21-09-2011 22:07:01
Mess around with the step limit
MindCalamity
21-09-2011 22:40:45
Mess around with the step limit
I found only 2 functions containing step, set and getStepOffset, is this what you're saying ?
What exactly should I configure to make the stairs climbable, or to enable the character controller to climb up ?
Can you please elaborate ?
MindCalamity
22-09-2011 12:19:45
increase the stepoffset.
How exactly ?
error C2247: 'NxOgre::CharacterController::setStepOffset' not accessible because 'Critter::CharacterBase' uses 'protected' to inherit from 'NxOgre::CharacterController'
1> d:\libraries\nxogre\sdk\NxOgreCharacterController.h(190) : see declaration of 'NxOgre::CharacterController::setStepOffset'
1> d:\libraries\critter\sdk\CritterCharacterBase.h(46) : see declaration of 'Critter::CharacterBase'
1> d:\libraries\nxogre\sdk\NxOgreCharacterController.h(52) : see declaration of 'NxOgre::CharacterController'
I'm getting these errors wen I try to add this line:
mSinbad->setStepOffset(2.0);
betajaen
22-09-2011 13:38:09
Weird. I thought I wrote that function.
Anyway, see stepOffset in the description.
MindCalamity
22-09-2011 14:26:02
Weird. I thought I wrote that function.
Anyway, see stepOffset in the description.
It is written I just cant' access it for some reason...
/*! function. getStepOffset
desc.
Get the minimal offset between the bottom of the character and the ground.
*/
Real getStepOffset() const;
void CharacterController::setStepOffset(Real offset)
{
mController->setStepOffset(offset);
}
I can only think of making it a public function, I will try that, but IDK how safe it would be.
betajaen
22-09-2011 14:59:43
It'll be safe. But I meant the AnimatedCharacterDescription unless you mean the the same thing I am.
MindCalamity
22-09-2011 19:01:13
It'll be safe. But I meant the AnimatedCharacterDescription unless you mean the the same thing I am.
I never even thought about trying the AnimatedCharacterDescription, not for a second, and your post reminded me to do that, and I struck gold, thanks!
For some reason, lately I'm missing the most basic stuff... (Lack of sleep is to blame for everything, even though it's just me being too spaced out
)