These forums are CLOSED. Please visit the new forums HERE
Pushing away |
|
Juntalis Drago
Registered User
Join date: 17 Aug 2004
Posts: 20
|
10-01-2004 17:48
How would I go about making an object push another object away from it? Let's say I'm using a sensor. The sensor picks up all the objects around then, and should then push the objects away from it. Is there a way to do this?
|
Strife Onizuka
Moonchild
![]() Join date: 3 Mar 2004
Posts: 5,887
|
10-01-2004 19:57
trying to make a sheild
![]() llPushObject no such thing as a perfect sheild. And push scripts can still effect you. _____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey |
Juntalis Drago
Registered User
Join date: 17 Aug 2004
Posts: 20
|
10-01-2004 23:25
What I meant was.. Say I made an object. Now say I made a ring of objects around the first, all of them set with physics. What I would like to do is be able to detect each object with a sensor, and apply the right push so that I'd be pushing the other objects AWAY from the object in the middle.
Think of it like.. A bomb, with the force of the explosion expanding from a single point. |
Siro Mfume
XD
Join date: 5 Aug 2004
Posts: 747
|
10-03-2004 12:17
http://www.badgeometry.com/wiki/llPushObject
use a for loop in your sensor and one of the Detected functions to determine what and where the objects are. Then use llPushObject as above to push them. You can use various other functions to determine. I would suggest not actually ever using such a bomb on people. They're pretty much frowned on everywhere. |
Juntalis Drago
Registered User
Join date: 17 Aug 2004
Posts: 20
|
10-05-2004 14:24
I got that much already.
![]() ![]() |
Strife Onizuka
Moonchild
![]() Join date: 3 Mar 2004
Posts: 5,887
|
10-06-2004 05:25
you are no fun.
use a global vector (that integer flag) and just push them with the difference between your position and their position. _____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey |