Bounce

Questions and answers about the how and why of making maps.
Post Reply
User avatar
Fox in the Fog
Private First Class
Private First Class
Posts: 227
Joined: Fri Aug 06, 2010 7:21 am
Location: Planet Earth
Contact:

Bounce

Post by Fox in the Fog » Mon Jun 13, 2011 8:10 am

I've tried to put some boxes with "caution" texture with also a physic driver which:

Code: Select all

physics 
  name phy3 
  linear 50 50 50 
end
physics 
  name phy4
  linear 50 50 50 
end
These are the boxes I've added on my map

Code: Select all

box  
  name box_bounce_under
  position -350.0 -390.0 0.0
  size 26.0 4.0 1.0
end
meshbox  
  name box_bounce
  position -350.0 -390.0 1.0
  size 26.0 2.0 0.5
  matref caution
  phydrv phy4
end
box  
  name box_bounce_under
  position 350.0 390.0 0.0
  size 26.0 4.0 1.0
end
meshbox  
  name box_bounce
  position 350.0 390.0 1.0
  size 26.0 2.0 0.5
  matref caution
  phydrv phy3
end
And I would like the tank jump in the direction of the center of the map... Should I add some "-" in the values to have an opposite direction? Exactly how?
Image

User avatar
optic delusion
Special Forces
Special Forces
Posts: 967
Joined: Sat Sep 25, 2004 2:29 pm
Location: Planet MoFo
Contact:

Re: Bounce

Post by optic delusion » Mon Jun 13, 2011 1:03 pm

Each physics driver will need to be adjusted to match it's particular box.
If your box is in a + + quadrant, you'll probably want - - physics.
If your box is in a - + quadrant, you'll probably want + - physics.
etcetera.
Take a look at my Defender game mode concept.

Thinking is not an automatic process. A man can choose to think or to let his mind stagnate, or he can choose actively to turn against his intelligence, to evade his knowledge, to subvert his reason. If he refuses to think, he courts disaster: he cannot with impunity reject his means of perceiving reality.

User avatar
Fox in the Fog
Private First Class
Private First Class
Posts: 227
Joined: Fri Aug 06, 2010 7:21 am
Location: Planet Earth
Contact:

Re: Bounce

Post by Fox in the Fog » Mon Jun 13, 2011 5:55 pm

Thank you so much :)
Image

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests