stilldesign / PhysX.Net

A .NET wrapper for NVIDIA PhysX 4.1.2 written using C++/CLI.
MIT License
206 stars 55 forks source link

Retrieve the state of a character controller #2

Closed kpko closed 10 years ago

kpko commented 10 years ago

Hi!

In PhysX I have the possibility to retrieve the state of a character controller via getState(). The function returns a PxControllerState reference. We would have to wrap the PxControllerState struct (defined in PhysX SDK/Includes/PxController.h) and wrap the function GetState, maybe as a property "State" on the character controller.

This would be great to check if the character is currently standing on the floor: You can check the collision flags on the state object.

Keep on your great work :-) and kudos for moving to github.

stilldesign commented 10 years ago

Sounds like a good idea :) I'll do some work on the wrapper this weekend :)

kpko commented 10 years ago

Sounds great :-) Maybe you can take a look at my pull request too - I wanted to share some features I implemented for my project.

stilldesign commented 10 years ago

Will do, just been short of time this week

stilldesign commented 10 years ago

Try out; https://github.com/stilldesign/PhysX.Net/commit/d1a5002b0bd4623db68f3c1ea797bab80cff9002

kpko commented 10 years ago

Great work :-) appreciate it very much.