Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, Grant, Neb), 908 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Just got Pro - Do not understand anything... #35785
11/08/04 12:23
11/08/04 12:23
Joined: Jan 2003
Posts: 798
New Zealand
Bright Offline OP
User
Bright  Offline OP
User

Joined: Jan 2003
Posts: 798
New Zealand
Our game buiss recently got Pro edition and I am the coder. I have never used Pro and its physics engine before. I read a manual and when I tryed the code the balls headed for the wall (thinking it was the floor). Strange...

Anyway, I was wondering if somebody could help me in getting started. All I need is a little code sniplet that makes an object have a basic rigid setting so it will fall down when it gets touched. I should be able to figure my way around the code from there.

Hope somebody can help


KAIN - Coming soon...
Re: Just got Pro - Do not understand anything... [Re: Bright] #35786
11/08/04 14:52
11/08/04 14:52
Joined: Mar 2002
Posts: 7,726
old_bill Offline
Senior Expert
old_bill  Offline
Senior Expert

Joined: Mar 2002
Posts: 7,726
Hello,

this should work for you:

Code:
function InitPhys( bboxtype, mass )
{
phent_settype(my, PH_RIGID, bboxtype);
phent_setmass(my, mass, PH_SPHERE);
}

var gravity[3] = 0,0, -380;

action ball
{
InitPhys(1,50);
phent_setmaxspeed(my, 5000, 20);
phent_setelasticity(my,2,200); // bounce
phent_setfriction(my,90);
ph_setgravity(gravity);
}



old_bill

EDIT:
My 5000st post!


Success is walking from failure to failure with no loss of enthusiasm.
Re: Just got Pro - Do not understand anything... [Re: old_bill] #35787
11/08/04 16:07
11/08/04 16:07
Joined: Jan 2003
Posts: 798
New Zealand
Bright Offline OP
User
Bright  Offline OP
User

Joined: Jan 2003
Posts: 798
New Zealand
Thanks Bill.
I will remind the team to credit you for your help.


KAIN - Coming soon...
Re: Just got Pro - Do not understand anything... [Re: Bright] #35788
11/09/04 04:15
11/09/04 04:15
Joined: Mar 2002
Posts: 7,726
old_bill Offline
Senior Expert
old_bill  Offline
Senior Expert

Joined: Mar 2002
Posts: 7,726
Thats always fine, but there are members on the board, which deserve more fame as I!
But if, send me a link....

old_bill


Success is walking from failure to failure with no loss of enthusiasm.
Re: Just got Pro - Do not understand anything... [Re: Bright] #35789
11/09/04 05:54
11/09/04 05:54
Joined: Jan 2003
Posts: 798
New Zealand
Bright Offline OP
User
Bright  Offline OP
User

Joined: Jan 2003
Posts: 798
New Zealand
I am working on a racing game and I am trying to make a hovercraft. I addedd the physics to the main racer but it wont move when I press the movement keys. It also floats around and doesnt seem to show any signs of polygon collition.

Is there any code that makes a hover craft and enable polygon collition?


KAIN - Coming soon...
Re: Just got Pro - Do not understand anything... [Re: Bright] #35790
11/09/04 14:12
11/09/04 14:12
Joined: Aug 2001
Posts: 2,320
Alberta, Canada
William Offline
Expert
William  Offline
Expert

Joined: Aug 2001
Posts: 2,320
Alberta, Canada
Check out our April edition of 3PM, our feature article is on coding an Hovercraft!

3PM April


Check out Silas. www.kartsilas.com

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

Daily dev updates - http://kartsilas.blogspot.com/
Re: Just got Pro - Do not understand anything... [Re: William] #35791
11/15/04 07:10
11/15/04 07:10
Joined: Jan 2003
Posts: 798
New Zealand
Bright Offline OP
User
Bright  Offline OP
User

Joined: Jan 2003
Posts: 798
New Zealand
I would buy your mag but right now our comperny is a little low on cash after getting Pro.


KAIN - Coming soon...

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