Page 1 of 1

directional velocity and collisions

PostPosted: Sun Apr 27, 2008 6:10 am
by feral
just a quick question, i know most of the problems with directional velocity are when you are moving to fast...

but i am having problems just trying to figure out the best way to handle collisions with background objects, and what method to use to "stop" the character.

eg: do i use a combination of disable key events plus ???

is there a good tutorial that uses directional_velocity and angle on the main character..? sorry I looked but can't seem to find a good one..

i need this for my 3d engine.. i was originally using x++ and y++ and it worked OK.. but directional velocity is easier if I can get it working :(

thanks in advance
feral

Re: directional velocity and collisions

PostPosted: Sun Apr 27, 2008 12:33 pm
by asmodeus
maybe use a collision event with repeat for "player" with actors like obstacles:
Code: Select all
pysicalResponse(MOVE_EVENT_ACTOR_ONLY, USE_CALCULATED_MASS, 1.000000, 1.000000, 0.000000, 1.000000);

is that what you want?

Re: directional velocity and collisions

PostPosted: Mon Apr 28, 2008 2:22 am
by feral
asmodeus wrote:is that what you want?


Yes, perfect !, thankyou, of course then I realised the other problem was that i was leaving the key down events to move as "repeat" ... so he would stop then go ahead anyway.. :oops:

thanks I think i owe you a point, will do, as soon as i find out what they are :)