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
Object that interacts with player! commercial* #89336
09/10/06 02:17
09/10/06 02:17
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
I need a physics object that interacts with a nonephysic player...i have commercial editon so i can only have 1 physics object registered at once..can someone help me? tnx for reading

Re: Object that interacts with player! commercial* [Re: Toon] #89337
09/10/06 13:32
09/10/06 13:32
Joined: Mar 2006
Posts: 752
Portugal
demiGod Offline
User
demiGod  Offline
User

Joined: Mar 2006
Posts: 752
Portugal
Be more especific, what kind of object do you want to interact with the player? A ball, a car? What?

Re: Object that interacts with player! commercial* [Re: demiGod] #89338
09/10/06 19:57
09/10/06 19:57
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
well...a box like in halflife2 just when the player collides with it..it moves in a realistic way. no things like pick it up with key_e and throwing it (gravitygun) but just a nice physicaction to make the box look like a real box when it collides with the player and maybe other entitys..i can only use 1 registered physicsobject at the time..i have commercial.

Re: Object that interacts with player! commercial* [Re: Toon] #89339
09/14/06 07:09
09/14/06 07:09
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
Anyone?

Re: Object that interacts with player! commercial* [Re: Toon] #89340
09/14/06 07:44
09/14/06 07:44
Joined: Apr 2005
Posts: 95
San Francisco
TheStonerunner Offline
Junior Member
TheStonerunner  Offline
Junior Member

Joined: Apr 2005
Posts: 95
San Francisco
Physics questions seem to be the most difficult to answer here. I have a problem just about as simple (and probably, the code that would solve one of our problems would solve both), and I've been researching for a while to no avail. I've downgraded my A6 Commercial to 6.11 (I think), since that's what Newton works with. I would check out Newton Game Dynamics, see if it can do what you want.

Re: Object that interacts with player! commercial* [Re: Toon] #89341
09/14/06 07:47
09/14/06 07:47
Joined: Jan 2004
Posts: 3,023
The Netherlands
Helghast Offline
Expert
Helghast  Offline
Expert

Joined: Jan 2004
Posts: 3,023
The Netherlands
untested, give it a try:

Code:
 
var earth_gravity[3] = 0,0, -986;
entity* pe_box;

function physics_ent
{
pe_box = me;
phent_settype(my, PH_RIGID, PH_BOX);
ph_setgravity ( earth_gravity );
phent_setmass(my, 5, PH_BOX);
phent_setfriction(my, 100);
phent_setelasticity(my, 50, 10);
phent_setdamping( my, 10, 10 );
}

function remove_objects
{
phent_settype(pe_box, 0,0);
}

function impact_pe
{
if(event_type == event_impact)
{
remove_objects();
physics_ent();
}
}

action init_box
{
my.enable_impact = on;
my.event = impact_pe;
}



as i said, didnt test it yet, gotta run to school, i'll try later if it doesnt work somehow.

regards,


Formerly known as dennis_fantasy
Portfolio - http://www.designorhea.com/
Project - http://randomchance.cherrygames.org/

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