Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (7th_zorro, Quad, VoroneTZ, 1 invisible), 623 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Newton users: Tech Demo question #23251
02/13/04 15:32
02/13/04 15:32
Joined: Feb 2004
Posts: 21
D
DoctorFong Offline OP
Newbie
DoctorFong  Offline OP
Newbie
D

Joined: Feb 2004
Posts: 21
I posted this on the Newton forum but have had no luck. It's not a complicated problem, but I'm a total noob and stuck:

My question has to do with the vehicle in the tech demo (the driveable crane): Namely, with what action does one control its movement? I created a similar vehicle base (just a simple rectangular body with four wheels). It works fine, as in it will move around on the floor if I shoot it, but I’m in the dark as to how to assign an “action” to it, since the action of all the components is “NewtonWoodEntity”.

I did receive this reply:

--------------
"You can make your own entity actions, just use the code from NewtonWoodEntity and create whatever action name youd like, maybe NewtonWheeledEntity in this case. In addition, you can assign parameters specific to your 'vehicle' in this new entity action."
--------------

OK, not too specific, but at least a start. This is what I did. I created the following action:

ACTION player_NewtonDrive
{
NewtonCreateGravityEntity (wood_material);
MY._MOVEMODE = _MODE_DRIVING;
MY._FORCE = 1.5;
MY._BANKING = 0.5;
MY.__SLOPES = ON;
MY.__TRIGGER = ON;
player_move();
}

I put it in the NewtonScript2.wdl after the "NewtonTerrain" action. I gave the chassis of the vehicle the "player_NewtonDrive" action.

The result: The chassis will drive around like in the "player_drive" action, and it will collide with other NewtonWoodEntities...BUT the hinges for the wheels do not stay attached. The chassis simply drops to the floor between the wheels the moment the level starts.

The hinges will stay attached if the chassis has behavior like "ndef" or "NewtonWoodEntity" but if any "player_" action is assigned to it the hinges won't stay attached.


I am obviously doing something wrong. Any ideas?



Re: Newton users: Tech Demo question [Re: DoctorFong] #23252
02/13/04 21:11
02/13/04 21:11
Joined: Sep 2003
Posts: 51
Newton Offline
Junior Member
Newton  Offline
Junior Member

Joined: Sep 2003
Posts: 51
Few people has had similar problems moving vehicles. The sucject is some what complicated and too long to explain in the forum. It is better to have some working script and move from there. I have not answered because you need a feature the was not esposed in plug-in 1.2, any atent to do it with 1.2 will result in a mediocre implementation.

This weekend we will release a patch 1.5 with vehicles action (partcial implementation), bouyancy and other especial effects.
There are pleanty of demos (most of then by Ventilators) that show how to do what you need.

Sorry for the delay
Newton

Re: Newton users: Tech Demo question [Re: Newton] #23253
02/14/04 03:52
02/14/04 03:52
Joined: Feb 2004
Posts: 21
D
DoctorFong Offline OP
Newbie
DoctorFong  Offline OP
Newbie
D

Joined: Feb 2004
Posts: 21
The patch is coming out this weekend? Terrific. Thanks.


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