Page 1 of 1

Help with physical response

PostPosted: Sat Apr 19, 2008 6:44 pm
by Wayra Condor
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:

Re: Help with physical response

PostPosted: Sat Apr 19, 2008 6:50 pm
by Kalladdolf
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.

Re: Help with physical response

PostPosted: Sat Apr 19, 2008 6:57 pm
by Wayra Condor
You mean that in water I have to low the yvelocity and enable multiple jumping? or something like that

Re: Help with physical response

PostPosted: Sun Apr 20, 2008 9:06 am
by Kalladdolf
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.