Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark Physics & Dark A.I. & Dark Dynamix / Problems with vehicle

Author
Message
Soty
17
Years of Service
User Offline
Joined: 18th Aug 2006
Location:
Posted: 16th Mar 2008 13:06
Hi,
I have 3 problems with the vehicles in DarkPhysics:

1)How can I delete a vehicle?
I found this thread http://forum.thegamecreators.com/?m=forum_view&t=112298&b=30
But phy delete rigid body ID didn't work.
It gives no error message and doesn't delete the vehicle.

2)How can I position a vehicle?
I tried phy set rigid body position ID, x#, y#, z#
...down't work!

3)How can I stop moving the vehicle immediately?



Thank you,

Kevin

A programmer is a tool to convert coffe into code !!!
culmor30
16
Years of Service
User Offline
Joined: 16th Jun 2007
Location: In my head.
Posted: 18th Mar 2008 03:36
1) I don't know. The only thing that comes to mind is resetting the physics scene, deleting everything in the process.

2) You may have to apply forces to it. I haven't looked into it, but if you can't, you need to position it before it is enabled as a physics object.

3) No idea about stopping it in its tracks in, say, midair, but you could try stopping the wheels from moving at all.
VRMan3D
19
Years of Service
User Offline
Joined: 3rd Apr 2005
Location: New England
Posted: 27th Apr 2008 21:53
1) Haven't tried deleting a vehicle, can't help you there...

2) phy set rigid body position = on a veicle works just fine for me. I do it with no problems in several programs (to reset the car to a specified position)

3) Also when resetting my vehicle, I 'stop' it completely (so it doesn't bounce off into the sunset right after you reset). I use:
phy set rigid body angular velocity car, 0, 0, 0
phy set rigid body linear velocity car, 0, 0, 0
phy set rigid body linear momentum car, 0,0,0
phy set rigid body angular momentum car, 0,0,0
I don't think I even need the last two honestly. I think I do it in other apps without worrying about momentum.

I've been looking for the last hour for the thread relating to making a vehicle powerslide/drift using those commands (can't remember how to speeel them which is half the problem!!!) asympte or something like that. I remember someone Finally had a working example of a DarkPhysics car drifting and sliding (sort of, mostly HA HA) . Can someone pretty pretty please show me the thread or code snippet again please? Thanks very very much.

Hope that helps.
-=VRMan=-

World Famous 3D Screensavers
-- http://www.vrman3d.com --
bergice
16
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 28th Apr 2008 11:49
I agree, there is a poor number of commands following with Dark Physics, they should really consider adding some commands.

For example you should be able to return information for a character controller!
sindore
19
Years of Service
User Offline
Joined: 2nd Jul 2004
Location: Bedfordshire, UK
Posted: 23rd May 2008 03:45 Edited at: 23rd May 2008 04:05
yer I agree with bergice, we need a lot more code for all physic & AI.

they need to add more to the AI Physic linking to!

they just need to sort out all dbp plug-ins, make them more user friendly, and link them better.

VRMan3D her is the download spoke of.

soul sucking devils, twisted body of the damed, slivering slim drips from ever poor, sin licking at your ears, and the smell stinging your eyes, and if you don't like it, get out of my kitchen!....

Attachments

Login to view attachments
bergice
16
Years of Service
User Offline
Joined: 5th Jun 2007
Location: Oslo,Norway
Posted: 23rd May 2008 12:04 Edited at: 23rd May 2008 12:36
Quote: "and link them better."


Thats it


[EDIT]
I really liked your car physics!
The ones i have made only jump, and do buggy stuff XD


Dont delete my sig mods, it is 600X120...
Slash!

Login to post a reply

Server time is: 2024-05-29 11:08:21
Your offset time is: 2024-05-29 11:08:21