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, The_Judge, Grant), 898 guests, and 5 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
Re: simple box that behaves like a box :P ?? #48693
07/02/05 16:23
07/02/05 16:23
Joined: Nov 2003
Posts: 433
The Netherlands
T
Toon Offline OP
Senior Member
Toon  Offline OP
Senior Member
T

Joined: Nov 2003
Posts: 433
The Netherlands
How can i create a simple box that behaves like a box,
when i shoot (trace, active_shoot) it or touch it as a player?

Re: simple box that behaves like a box :P ?? [Re: Toon] #48694
07/02/05 22:44
07/02/05 22:44
Joined: Apr 2002
Posts: 1,867
N
Neuro Offline
Serious User
Neuro  Offline
Serious User
N

Joined: Apr 2002
Posts: 1,867
Using the built in physics, netwon physics, or coding your own "fake" physics?


The Wii Effect - a look at Nintendo's epidemic
Re: simple box that behaves like a box :P ?? [Re: Neuro] #48695
07/03/05 20:28
07/03/05 20:28
Joined: Nov 2003
Posts: 433
The Netherlands
T
Toon Offline OP
Senior Member
Toon  Offline OP
Senior Member
T

Joined: Nov 2003
Posts: 433
The Netherlands
Tnx for reply;
I wanna use the build in physics (i have commercial so ill have to write a switch system.) but how can i configure the box? im not good at this physics-stuff...tnx for reading

hope for replys

Re: simple box that behaves like a box :P ?? [Re: Toon] #48696
07/03/05 21:24
07/03/05 21:24
Joined: Apr 2002
Posts: 1,867
N
Neuro Offline
Serious User
Neuro  Offline
Serious User
N

Joined: Apr 2002
Posts: 1,867
There are many ways to do it. This is what i did for testing...

Code:

var earthgravity[3] = 0,0, -386;
var bulletspeed;
function physic_setup()
{
ph_setgravity( earth_gravity );
ph_selectgroup(1);
}

action Item_Object
{
object = me;
phent_settype( object, PH_RIGID, PH_BOX );
phent_setmass(my, 1, PH_SPHERE);
phent_setfriction(my,0);
phent_setdamping(object, 0.1,0.1);
phent_setgroup( object, 1 );
ph_selectgroup(1);
phent_addforcelocal(my, bulletSpeed, nullvector);
}




The Wii Effect - a look at Nintendo's epidemic

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