How to set an object in the opposite direction movement?

View previous topic View next topic Go down

How to set an object in the opposite direction movement?

Post  LuisLee on 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 : 29

View user profile

Back to top Go down

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

Post  sio2interactive on 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...

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

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

View user profile http://sio2interactive.com

Back to top Go down

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

Post  LuisLee on 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 : 29

View user profile

Back to top Go down

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

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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