Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Black Mesa
18
Years of Service
User Offline
Joined: 25th Mar 2006
Location:
Posted: 14th Aug 2006 01:17
I want to apply a force to one end of an object when I press a key. I tried PHY ADD RIGID BODY FORCE but it seems to have no effect. I think it might be because I have no clue what the mode parameter is. Anyone know?

Your mod has been erased by a signature
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 14th Aug 2006 01:30 Edited at: 14th Aug 2006 01:54
what are trying to do.

1. trying to push it.
2. flick it.
3. make it jump.

also have a look at

Prismatic Joint

Dark Physics makes any hot drink go cold.
Black Mesa
18
Years of Service
User Offline
Joined: 25th Mar 2006
Location:
Posted: 14th Aug 2006 02:07
I want to push down the end without the block.



Your mod has been erased by a signature
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 14th Aug 2006 02:18
your not going to like the simple answer.



Dark Physics makes any hot drink go cold.
bosskeith
18
Years of Service
User Offline
Joined: 5th Dec 2005
Location:
Posted: 14th Aug 2006 02:18 Edited at: 14th Aug 2006 02:28
i do not believe 100000 is an appropriate mode for applying a force...try a number between 1 and 5
phy add rigid body force ID, forceX#, forceY#, forceZ#, x#, y#, z#, mode

mode
the method of force to apply from a selection of – 1, force, has unit of mass * distance / time ^ 2 2, impulse, has unit of mass *
distance / time 3, velocity change, has unit of distance / time, effect is mass independent 4, smooth impulse, same as impulse but
effect is applied over all substeps of physics update 5, acceleration, has unit of distance / time ^ 2, an acceleration, treated like
a force except the mass is not divided out before integration


hmm however that did not help

Ink all over the screen...and dang it! Signature still does not show.
bosskeith
18
Years of Service
User Offline
Joined: 5th Dec 2005
Location:
Posted: 14th Aug 2006 02:37 Edited at: 14th Aug 2006 02:39
ahh easy peasy the other problem was you were applying your force in an upward direction...seemings the revolute joint already hit ground it could not go further up...you wanted to apply a negative force to your "catapult"



phy add rigid body force 3, 0, -100000, 0, 8,30, 0, 1

Ink all over the screen...and dang it! Signature still does not show.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 14th Aug 2006 02:47
this makes it fly up but going to angluar in a bit



Dark Physics makes any hot drink go cold.
Black Mesa
18
Years of Service
User Offline
Joined: 25th Mar 2006
Location:
Posted: 14th Aug 2006 03:41
Thanks guys, that helped. 100000 is probably too much, but anything worth doing is worth over doing

Your mod has been erased by a signature
Black Mesa
18
Years of Service
User Offline
Joined: 25th Mar 2006
Location:
Posted: 14th Aug 2006 04:16
One last question. How would you guys "reset" this? It seems that after you apply the force once it becomes random at when it decides to be effected by the force again. I've tried setting the velocity to 0,0,0 and setting it back to the original position with no luck.

Your mod has been erased by a signature

Login to post a reply

Server time is: 2024-04-23 22:07:35
Your offset time is: 2024-04-23 22:07:35