Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: How can I scale physic body??  (Read 259 times)
Satanka_Patka
Community Member
*
Posts: 94


« on: October 02, 2008, 06:51:37 AM »

Hi

I have a sphere and I use it for managing player movement.

I would like to make a crouch effect, but I don't know how can I scale the physic body.

Any idea?

Logged
ZaPPZion
Community Member
*
Posts: 341


« Reply #1 on: October 02, 2008, 06:52:45 AM »

As far as i know, you can't. You'd have to make a 2nd physics body for the crouching position.
Logged
Satanka_Patka
Community Member
*
Posts: 94


« Reply #2 on: October 02, 2008, 02:28:04 PM »

Thanks ZaPPZion,

Yes unfortunately you are right, I tried this solution before (create 2nd physic body) but not easy syncron these bodies.

I thought that I create my collision physic body from two part lower and upper and attach them with together, after when I crouch I will turn off the collision of the upper body and so on. I'm already finish all of my FPS movement just this was the last problem.

I built a little stair finder function to my code, so If I want to go up on stairs I add extra force to my physic body. If I finished with my code I will share it. I have also the other version of my movement, but I think it will better than earlier. Grin
Logged
António Mateus
Community Member
*
Posts: 26


WWW
« Reply #3 on: October 02, 2008, 02:38:07 PM »

Can you post you're ideas (pseudo-code, code, guidelines, whatever) for the fps camera controller?

I have been messing around with this subject but i'm having problems with the movement, specifically rotation.

Thanks in advance.
AMateus
Logged
Satanka_Patka
Community Member
*
Posts: 94


« Reply #4 on: October 03, 2008, 05:28:06 AM »

HI Amateus

Private post has been sent.

Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks