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.

Dark Physics & Dark A.I. & Dark Dynamix / Rolling Ball Straight Line

Author
Message
TCarrillo
17
Years of Service
User Offline
Joined: 25th Mar 2007
Location:
Posted: 18th Jul 2007 02:43
Is it possible to limit a rolling ball to only go in a straigh line from point a to point b without other objects being able to knock it off course?

Here is what I have been trying to do but there has to be a better way.

`Attempt to keep ball running center
Phy Add rigid body force MyBall,0,0,MyForce,MyMode
if Object Position x(MyBall) < 1
Phy Add rigid body force MyBall, 2,0,0,2
endif
if Object Position x(MyBall) > 1
Phy Add rigid body force MyBall, -2,0,0,2
endif

Thank you
Hoozer
18
Years of Service
User Offline
Joined: 8th Sep 2006
Location: Bremerhaven (Germany)
Posted: 18th Jul 2007 15:03 Edited at: 18th Jul 2007 15:05
@ TCarrillo: I had some effect of "no influence" for my ball in my "PhysiX-Brick-Breakout"-game (see sig for more infos) during developement! I gave my ball a very high mass and my boxes had a very low mass, so the ball just pushed the boxes asside, nearly without getting influenced!

You can also try to make to exclude a group from the collision-detection, so the ball goes through the specified objects, it will not be influenced, cause no collision occurs!

Both mathods are rather unusefull, if you desire a complete collision-detection for your objects (=group-exclusion, looks ugly when something goes through something else) or want to prevent them to influence the ball at all (=high vs. low mass-trick, ball gets influenced although it might be only a little bit).

(Somehow I fell, all this writeing was really unsefull at all! Sorry!)


Hoozer

AMD64X24800+(939);2GB;GF6800LE (@12PS, 6VS; 380 MHz, RAM: 434 MHz)
DP-Sw-Mode-Comp-Entry (updated to V. 1.4):
http://forum.thegamecreators.com/?m=forum_view&t=109846&b=5&p=0
TCarrillo
17
Years of Service
User Offline
Joined: 25th Mar 2007
Location:
Posted: 18th Jul 2007 22:57
Thank you for taking the time to respond. Changing the mass helps quite a bit, but still has some effect.

Thanx again.

Login to post a reply

Server time is: 2024-11-24 18:29:57
Your offset time is: 2024-11-24 18:29:57