I'm having a strange problem, and I'm sure it's because I don't know what I'm doing.
I've created a Kinematic Character Controller (with a ghostobject). I then have other kinds of objects that it needs to "interact" with. I create some statictrimesh rigidbody objects for the terrain which are immovable (mass = 0.0f) and the Kinematic character is working fine with those by not passing through them. However, I then have "pushable" objects which I make via rigidbodies (and mass > 0.0f), and although I can SOMETIMES push them around, most of the time they act like my terrain objects and my kinematic character treats them as immoveable (and my character gets pushed around them instead).
Ideally, what I'd like to see happen is that the Kinematic Character simple pushes the "pushable" objects out of it's path with no resistance. What's the trick?
How can I make a Kinematic Object push others around?
-
elias4444
- Posts: 3
- Joined: Sun Jul 26, 2009 10:57 pm
-
LtJax
- Posts: 8
- Joined: Thu Sep 18, 2008 2:37 pm
Re: How can I make a Kinematic Object push others around?
You need to change the character controller to apply force to colliding rigid bodies, or at least that's how I did it. I think the right method to modify was recoverFromPenetration().
-
elias4444
- Posts: 3
- Joined: Sun Jul 26, 2009 10:57 pm
Re: How can I make a Kinematic Object push others around?
Ah, that'd be it! Thank you!