Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Collision (Car Wreck)

CERMUSA Shan
Registered User
Join date: 14 Mar 2007
Posts: 12
03-14-2007 08:14
Is there any way to get the mass of the object that you hit during a collision? Basically I'm trying to stage a realistic car wreck scenario and am trying to have the right negative impulse once one car hits another or another object. If this isn't the right way to go about this I'm also open to suggestions. Thanks ahead of time.
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
03-14-2007 09:12
llGetObjectMass()
_____________________
CERMUSA Shan
Registered User
Join date: 14 Mar 2007
Posts: 12
03-19-2007 08:00
Doesn't that get the mass of the object you are working with and not the object that you hit?
Atashi Toshihiko
Frequently Befuddled
Join date: 7 Dec 2006
Posts: 1,423
03-19-2007 10:19
llGetMass() returns the mass of the object the script is in.

llGetObjectMass(key id) returns the mass of the object whos key you feed to the call.

You can click the function in Jillian's post to see the actual Wiki info.

-Atashi
_____________________
Visit Atashi's Art and Oddities Store and the Waikiti Motor Works at beautiful Waikiti.