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.

Author
Message
corwin
14
Years of Service
User Offline
Joined: 31st May 2009
Location: France
Posted: 26th Jul 2009 17:30
Sorry for my english

Then here I have minor problems. with dark physics I have to create an object which I almost have semi with the position of the camera and I am to it locker: “lock object”. This object goes very well if it is in statics but shifts completely and turns in all the directions if it is in dynamics. the problem its that if I put in statics the object goes well but the collisions does not carry out with the dynamic object. And if I put in dynamics the object is completely to shift but the collisions run very well. is a solution so that any walk as it necessary ?

HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 26th Jul 2009 23:02
Look up one of the follow.

PHY SET RIGID BODY KINEMATIC POSITION
PHY SET RIGID BODY KINEMATIC ROTATION
PHY SET RIGID BODY KINEMATIC

this will work with other objects and collisions,plus you can move it about.

Dark Physics makes any hot drink go cold.
Duke E
15
Years of Service
User Offline
Joined: 10th Mar 2009
Location:
Posted: 27th Jul 2009 11:57
Are you talking about Lock Object On/Lock Object Off on a physics object?

If so, i think you have to reconsider as Lock Object changes the objects position, the objects that are locked will be positioned at 0,0,0 (x,y,z) by the graphics engine.

However HowDo is correct, Kinematic objects is the way to go, but look in to another method of positioning the object relative to the camera.

Regards
corwin
14
Years of Service
User Offline
Joined: 31st May 2009
Location: France
Posted: 27th Jul 2009 14:16
I have all tested. Can you modify the code directly so that I see?



corwin
14
Years of Service
User Offline
Joined: 31st May 2009
Location: France
Posted: 29th Jul 2009 14:37
Help me please

BillR
21
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 8th Aug 2009 10:56 Edited at: 8th Aug 2009 11:25
@corwin

DBPro controls it's own world of objects using DBPro commands.
Once you use DarkPhysics, those objects are controlled by using DardPhysics commands in the DarkPhysics world.

Trying to position or rotate DarkPhysics controlled objects with DBPro commands will really mess things up.

The solution is to set up those objects that you want to have more control over in DBPro is to use the KINEMATIC object commands in DardPhysics, like 'HowDo' suggested.

Quote: "
Look up one of the follow.

PHY SET RIGID BODY KINEMATIC POSITION
PHY SET RIGID BODY KINEMATIC ROTATION
PHY SET RIGID BODY KINEMATIC

this will work with other objects and collisions,plus you can move it about.
"


Remember.....You MUST use DarkPhysics commands to control DarkPhysics ojects!
That includes position, rotation etc.

Be sure to check out the Kinematic example that came with DarkPhysics:
DARKBASIC\PROJECTS\Dark Physics\Demos\Rigid Body\Kinematic Objects
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 8th Aug 2009 11:11
Is this any good.



Dark Physics makes any hot drink go cold.
corwin
14
Years of Service
User Offline
Joined: 31st May 2009
Location: France
Posted: 12th Aug 2009 18:57
Ho very thank

Login to post a reply

Server time is: 2024-04-26 11:46:51
Your offset time is: 2024-04-26 11:46:51