Hello.
I finally got bullet physics to work in my project, so now I want to make first person camera, that would collide with everything.
What object should I use to represent player? Cylinder? Box? Sphere?
Sphere rolls terribly long before it stops completely, box and cyllinders can flip over, and they don't work good when climbing stairs etc...
Also that object must be non-visible.
Do you have any ideas what I could do?
Thank you! btw: my first post here, so hi everybody!
Colliding first person camera
Re: Colliding first person camera
Hi,
You can use any shape you like/need.What object should I use to represent player? Cylinder? Box? Sphere?
You can constraint the rotation of objects so they wouldn't flip over (tried with boxes and it works alright).Sphere rolls terribly long before it stops completely, box and cyllinders can flip over, and they don't work good when climbing stairs etc...
Every physics object is invisible unless you make it to be visible.Also that object must be non-visible.
Working on game: Marrbles (Currently stopped).
-
- Posts: 1010
- Joined: Mon Oct 24, 2011 10:03 pm
- Location: 0x45 61 72 74 68 2c 20 69 6e 20 74 68 65 20 73 6f 6c 20 73 79 73 74 65 6d
Re: Colliding first person camera
I'd use a sphere (or cylinder, though preferably a sphere that is shaped like a watermelon , better for walking in stairs and such) that is constrained.
"this is not the bottleneck you are looking for"
Re: Colliding first person camera
Thank you!
I will take look at the bullet's constraints.
I will take look at the bullet's constraints.
Re: Colliding first person camera
I didn't meant constraints, there's an actual function to set limits for every axis.RobSis wrote:Thank you!
I will take look at the bullet's constraints.
Might be this one(not sure about it though):
Code: Select all
void btRigidBody::setAngularFactor ( const btVector3 & angFac )
Working on game: Marrbles (Currently stopped).
Re: Colliding first person camera
Yeah, I didn't know about that!serengeor wrote:Might be this one(not sure about it though):
I tried to mess with it and I'm most comfortable with all rotations disabled - vector (0,0,0).
Cool stuff! Didn't tried the stairs though. Only steep platform which I had troubles to climb :)