Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (alibaba, vicknick), 1,492 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Ball Movement #17501
09/23/03 12:00
09/23/03 12:00
Joined: Aug 2001
Posts: 2,320
Alberta, Canada
William Offline OP
Expert
William  Offline OP
Expert

Joined: Aug 2001
Posts: 2,320
Alberta, Canada
The script I have so far is posted on the bottom, so far the ball just drops from the sky and bounces and then sits still. What I want is that when you touch it with the gaurd model, it will move. How would I go about this? Thank you

//inside main()

ph_setgravity( earthgravity );
ph_selectgroup(1);

// Not inside main()

var earthgravity[3] = 0,0, -300;

action ball
{

phent_settype(my, ph_rigid, ph_sphere);
phent_setmass(my, 1, ph_sphere);
phent_setgroup(my,1);
phent_setelasticity(my, 61, 0);
phent_setfriction (my, 6);
}


Check out Silas. www.kartsilas.com

Hear my band Finding Fire - www.myspace.com/findingfire

Daily dev updates - http://kartsilas.blogspot.com/
Re: Ball Movement [Re: William] #17502
09/23/03 16:43
09/23/03 16:43
Joined: Apr 2003
Posts: 111
france
seb_dup1 Offline
Member
seb_dup1  Offline
Member

Joined: Apr 2003
Posts: 111
france
try to decrease the var friction to 0 with phent_setfriction.

Re: Ball Movement [Re: William] #17503
09/23/03 23:22
09/23/03 23:22
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline
Senior Expert
ello  Offline
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
just use ent_move for the guard. and if you are using a6.11 then you have to wait for the next update, cause ther is a bug in 6.11 (i went back down to 6.0.0.6 to get the collision)

hope it helps


www.earthcontrol.de
quoted: We want to maintain a clean, decent, American family suited forum look... which means you may post zombies or chainsaw massacres, but no erotic.
Re: Ball Movement [Re: ello] #17504
09/24/03 08:27
09/24/03 08:27
Joined: Aug 2001
Posts: 2,320
Alberta, Canada
William Offline OP
Expert
William  Offline OP
Expert

Joined: Aug 2001
Posts: 2,320
Alberta, Canada
Oh okay, I am using A6.11 so that may be my problem. Dont I need to add force or torque to make it move though?


Check out Silas. www.kartsilas.com

Hear my band Finding Fire - www.myspace.com/findingfire

Daily dev updates - http://kartsilas.blogspot.com/
Re: Ball Movement [Re: William] #17505
09/26/03 10:44
09/26/03 10:44
Joined: Aug 2001
Posts: 2,320
Alberta, Canada
William Offline OP
Expert
William  Offline OP
Expert

Joined: Aug 2001
Posts: 2,320
Alberta, Canada
I made myself a custom movement script. I am wondering how I would go about making it so that when the model that my movement script is attached to, hits a the ball that I made(which has physics), I want the ball to move. How would I do this? Please just lead me in the right direction, it is a little confusing right now. Thanks


Check out Silas. www.kartsilas.com

Hear my band Finding Fire - www.myspace.com/findingfire

Daily dev updates - http://kartsilas.blogspot.com/
Re: Ball Movement [Re: William] #17506
09/27/03 15:02
09/27/03 15:02
Joined: Apr 2003
Posts: 111
france
seb_dup1 Offline
Member
seb_dup1  Offline
Member

Joined: Apr 2003
Posts: 111
france
Reuse your script with version 6.0.0.6 ; it work fine with;simply add this line code to your action ball (or inside main) to prevent some weird behaviour of the ball:

ph_setcorrections(60000,0.01);

Hope that help.


Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1