Help with physical response

Game Editor comments and discussion.

Help with physical response

Postby Wayra Condor » Sat Apr 19, 2008 6:44 pm

I know, some of this themes aren't concerned by GE, but I don't know much abouts physics, so on programming I got every thing execpt what I need.

The psysic response is something like this:

Move: Event actor, Collide with actor, both actors
Mass: Use calculated, specify
Event Multiplier: a number
Collide Multiplier: another number
Final Velocity Multiplier:
.-Event Actor: other number
.-Collide Actor: and another number

But the proble is how to set all this in order to get the correct effect like:
.- a wall
.- a sand pit
.- water
.- etc

And where to put it, I got thi problem making a bomberman game for a friend where the player when touch a wall was send bouncing every where, this is what I did:

.-I put the code on collition, any side of "wall", repeat enable
.-I use the script editor (for if I need more codes here)
.-The physic response ended something like this:
Code: Select all
PhysicalResponse(MOVE_EVENT_ACTOR_ONLY, USE_CALCULATED_MASS, 1.000000, 1.000000, 1.000000, 1.000000)

...because, thats the default value

So... whats wrong
Well, thanks for help :mrgreen:
Current proyect: The King of Peru 3 (0,1%...Now reutrning form a long break!)
User avatar
Wayra Condor
 
Posts: 27
Joined: Sat Dec 08, 2007 5:05 pm
Location: Cuzco, Peru
Score: 1 Give a positive score

Re: Help with physical response

Postby Kalladdolf » Sat Apr 19, 2008 6:50 pm

to avoid the bouncing, set the final velocity multiplier for event actor to 0.
then you'll have a sort of a wall.

to make him slide:
mass: specifiy
all 4 numbers 1.

the physical response doesn't support water.
you'll have to change the gravity settings for water.
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: Help with physical response

Postby Wayra Condor » Sat Apr 19, 2008 6:57 pm

You mean that in water I have to low the yvelocity and enable multiple jumping? or something like that
Current proyect: The King of Peru 3 (0,1%...Now reutrning form a long break!)
User avatar
Wayra Condor
 
Posts: 27
Joined: Sat Dec 08, 2007 5:05 pm
Location: Cuzco, Peru
Score: 1 Give a positive score

Re: Help with physical response

Postby Kalladdolf » Sun Apr 20, 2008 9:06 am

exactly.
but it depends on what kind of water you want.
for example, you can also make the actor float on top of the water and only dive in if you press the "down" button.
it's your choice.
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron