FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How to set an object in the opposite direction movement?

2 posters

Go down

How to set an object in the opposite direction movement? Empty How to set an object in the opposite direction movement?

Post  LuisLee Wed Aug 26, 2009 3:01 am

When an object hit the wall.To change the direction of motion of objects.
The objects in the tutorial09 hitting the wall does not change the direction of motion.

How to set an object in the opposite direction movement in SIO2?
Very Happy

LuisLee

Posts : 85
Join date : 2009-04-26
Age : 35

Back to top Go down

How to set an object in the opposite direction movement? Empty Re: How to set an object in the opposite direction movement?

Post  sio2interactive Wed Aug 26, 2009 3:30 am

Well that's more a bullet issue... in order to get the new velocity, just getLinearVelocity of the rigid body and convert it to a direction vector...
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 43
Location : Shanghai

http://sio2interactive.com

Back to top Go down

How to set an object in the opposite direction movement? Empty Re: How to set an object in the opposite direction movement?

Post  LuisLee Wed Aug 26, 2009 3:38 am

sio2interactive wrote:Well that's more a bullet issue... in order to get the new velocity, just getLinearVelocity of the rigid body and convert it to a direction vector...

Thank you for your reply!Could you say more specifically?I do not quite understand.thank you !
Very Happy

LuisLee

Posts : 85
Join date : 2009-04-26
Age : 35

Back to top Go down

How to set an object in the opposite direction movement? Empty Re: How to set an object in the opposite direction movement?

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum