directional velocity and collisions

Non-platform specific questions.

directional velocity and collisions

Postby feral » Sun Apr 27, 2008 6:10 am

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
User avatar
feral
 
Posts: 308
Joined: Sun Mar 16, 2008 6:27 am
Score: 47 Give a positive score

Re: directional velocity and collisions

Postby asmodeus » Sun Apr 27, 2008 12:33 pm

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?
User avatar
asmodeus
 
Posts: 483
Joined: Thu Oct 11, 2007 5:04 pm
Location: Germany
Score: 43 Give a positive score

Re: directional velocity and collisions

Postby feral » Mon Apr 28, 2008 2:22 am

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 :)
User avatar
feral
 
Posts: 308
Joined: Sun Mar 16, 2008 6:27 am
Score: 47 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron