0 registered members (),
1,094
guests, and 1
spider. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Problem with A 6 physics
#141663
07/17/07 15:39
07/17/07 15:39
|
Joined: Oct 2005
Posts: 528 Italy
Mondivirtuali
OP
User
|
OP
User
Joined: Oct 2005
Posts: 528
Italy
|
Q: What does "1 physics object" in A6 Commercial mean ? A: You can have multiple objects with physcis, but only one can be active at any time. So you could have a door that uses physics, and a barrel that also uses them. When the player is close to the door, the door's physics are enabled. When the player is further away from the door, its physics are turned off. When the player gets close to the barrel, the barrel's physics are turned on and then when the player is out of sight, the physics are turned off. now, I try to assign the same action to 2 objects, not close each other . When I run the test map, I give this alert: and then , the white ball does't move or reacts, while the orange one works and I can push it walking against. the 2 balls are distant . See the video http://www.youtube.com/watch?v=PJuLZ1kVhrYI wonder if there is need some code to deactivate or activate the P subsystem. This is the code Code:
action phys_obj {var earthgravity[3] = 0,0, -386;
ph_setgravity(earthgravity); phent_settype(my,PH_RIGID,ph_sphere); phent_setmass(my,1,ph_sphere); phent_setfriction(my,30); phent_setelasticity(my,50,10); phent_setdamping(my,90,90); }; }
Last edited by Mondivirtuali; 07/17/07 15:42.
|
|
|
Re: Problem with A 6 physics
[Re: fastlane69]
#141668
07/18/07 20:43
07/18/07 20:43
|
Joined: Oct 2005
Posts: 528 Italy
Mondivirtuali
OP
User
|
OP
User
Joined: Oct 2005
Posts: 528
Italy
|
How to deactivate the first entity? I should to create the P entity when I come closer. I assigned one acton to this box, changing only the ph-box Code:
action phys_obj {var earthgravity[3] = 0,0, -386;
ph_setgravity(earthgravity); phent_settype(my,PH_RIGID,ph_box); phent_setmass(my,1,ph_box); phent_setfriction(my,30); phent_setelasticity(my,50,10); phent_setdamping(my,90,90); }; }
with one only entity this time the box is passable and I stuck into it . I still think that 3dgs need some templates for P only, some basic actions. Is not easy as the other functions, needs a template .
Last edited by Mondivirtuali; 07/18/07 20:44.
|
|
|
Re: Problem with A 6 physics
[Re: Mondivirtuali]
#141669
07/18/07 20:47
07/18/07 20:47
|
Joined: Mar 2003
Posts: 5,377 USofA
fastlane69
Senior Expert
|
Senior Expert
Joined: Mar 2003
Posts: 5,377
USofA
|
I don't mean this to come off as insulting considering I have a PhD in Physics, but honestly using the PE is quite simple. Register the object, apply a force, watch it go! The problem is that you are trying to workaround the 1 object commercial limitation; hence all of your problems have to do with the workaround and NOT the PE. Conitec will not make a template to accomodate this workaround since a) it would defeat the purpose of the limit, b) they aren't working on A6 anymore, and c) unlimited physics is standard in all versions of A7 anyways! So my advice to you is upgrade to A7 and use the PE without any work arounds. But if you stay with A6, not that un-registering an object is merely a null set_type call.
|
|
|
Re: Problem with A 6 physics
[Re: fastlane69]
#141670
07/18/07 21:07
07/18/07 21:07
|
Joined: Oct 2005
Posts: 528 Italy
Mondivirtuali
OP
User
|
OP
User
Joined: Oct 2005
Posts: 528
Italy
|
I tryed the same code on A7 (now the ph is the only purpose to me to upgrade) but it don't work. One or more objects does no matter; every objects is quite immobile or do not react when I come closer.
The damn orange ball in A6 was the only ph thing that I was able to get.
Last edited by Mondivirtuali; 07/18/07 21:09.
|
|
|
Re: Problem with A 6 physics
[Re: fastlane69]
#141672
07/18/07 22:46
07/18/07 22:46
|
Joined: Oct 2005
Posts: 528 Italy
Mondivirtuali
OP
User
|
OP
User
Joined: Oct 2005
Posts: 528
Italy
|
This is the new box code var earthgravity[3] = 0,0, -386;
action phys_obj {
ph_setgravity(earthgravity); phent_settype(my,PH_RIGID,ph_box); phent_setmass(my,3,ph_box); phent_setfriction(my,30); phent_setelasticity(my,50,10); phent_setdamping(my,20,20); };
risult: the box don't movie or is passable, if I walk agaist him, it does not movie or I remain stock into it. I need a template for some basic use of the P engine.
edit: with the polygon option checked the code (one box) does work
Last edited by Mondivirtuali; 07/18/07 23:02.
|
|
|
|