View unanswered posts | View active topics It is currently Thu Dec 26, 2024 5:28 am



Reply to topic  [ 18 posts ]  Go to page Previous  1, 2
 Raycast Vehicles 
Author Message
User avatar

Joined: Sat Nov 03, 2007 9:44 pm
Posts: 1916
Location: Flint Hills
Reply with quote
Post Re: Raycast Vehicles
Daman wrote:
pretty sure you can't run lua on attachables

numgun wrote:
Code:
PRINT:     SetWhichMOToNotHit  function

The wheels could be separate MOSRotatings, bound to the vehicle through Lua; which I think is why this was mentioned.


Sun May 17, 2009 3:05 am
Profile

Joined: Sat Feb 03, 2007 7:11 pm
Posts: 1496
Reply with quote
Post Re: Raycast Vehicles
But there is still the trouble of applying a velocity to a point on the car, and not just the sprite offset.


Sun May 17, 2009 4:46 am
Profile WWW
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post Re: Raycast Vehicles
What about AddForce and AddAbsForce?
The Wiki wrote:
AddForce

Adds force to this MovableObject for the next time Update() is called.

Arguments:

* An Vector with the external force vector that will be added to this
* MovableObject and affect its path next Update(). In N or kg * m/s^2.
* A Vector with the offset, in METERS, of where the force is being applied relative to the center of this MovableObject.

For velocity you'd have to do a few calculations to get from force to m/s, but other than that.


Sun May 17, 2009 12:25 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 18 posts ]  Go to page Previous  1, 2

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.522s | 13 Queries | GZIP : Off ]