Objects collidable with the camera?

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
Yakmo
Posts: 3
Joined: Tue Nov 23, 2010 2:57 pm

Objects collidable with the camera?

Post by Yakmo »

Hi,

i have a question about the collision between the camera and game objects (/entities).
I want that the camera can move/push the objects..
Has anyone a tip how i can do that?


Yakmo.
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Objects collidable with the camera?

Post by Norbo »

If it's just a floating sphere controlled by user input, then you could use a dynamic Sphere with its IsAffectedByGravity set to false. Setting its LocalInertiaTensorInverse = new Matrix3X3() will lock the rotation if desired. Then, set its LinearVelocity based on user input.

This is a very simple form of a character controller. An overview of character controllers can be found here: http://www.bepuphysics.com/blog/2011/8/ ... tails.html
Post Reply