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 / revolute spring not working?

Author
Message
FROGGIE!
20
Years of Service
User Offline
Joined: 4th Oct 2003
Location: in front of my computer
Posted: 6th Sep 2006 17:25
Any idea why the spring isnt working in this code?

HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 7th Sep 2006 06:15
try changing this line

PHY SET REVOLUTE JOINT SPRING 1,0.0,1.0

to this

PHY SET REVOLUTE JOINT SPRING 1,object angle x(3),1.0

Dark Physics makes any hot drink go cold.
FROGGIE!
20
Years of Service
User Offline
Joined: 4th Oct 2003
Location: in front of my computer
Posted: 7th Sep 2006 12:24
But it still seems to have no effect? Am i right in assuming that this command will make the joint rotate back to the specified angle like its on a spring?
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 7th Sep 2006 13:42
well I got the upright bar to spring backup when hit with the sphere using above code. not sure if thats were your tring to go with it.

Dark Physics makes any hot drink go cold.
FROGGIE!
20
Years of Service
User Offline
Joined: 4th Oct 2003
Location: in front of my computer
Posted: 8th Sep 2006 14:42
Well thats kind of what i was hoping for but that code doesnt work for me? The spring command was set on joint 1 and i posted some code that had a kinematic command in it so joint one was solid, it shouldnt have effected the upright bar? Heres the code without the kinematic command and object angle(x), but im still not seeing anything different:



Is there an example anywhere of this command being used?
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 8th Sep 2006 15:16
Let me see if I am on the same wave lenght.

Object 3, you what its so if one of the sphere's hit it, it will tilt say 45degs then return to the position it started at.


if that is so you may need an object to work as a spring on object 3.

Dark Physics makes any hot drink go cold.
FROGGIE!
20
Years of Service
User Offline
Joined: 4th Oct 2003
Location: in front of my computer
Posted: 8th Sep 2006 15:53
Yeah thats exactly what i want, so how would i do that?

Sorry its just im completely new to DP and i assumed that i could use an object on its own as a spring.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 8th Sep 2006 17:30 Edited at: 8th Sep 2006 17:59
When you use Dark Physics you have to think in real terms, so how would have built this in say wood.

1. there would be a spindle with a spring on it to keep it level.
2. this would then be connected to the horizontal bar that would then stay at position until you drop or touch it with some thing.

so to your code make a small sphere which you then connect to object 3.

will be trying out what I say should post something soon.

edit could be a long soon....

Dark Physics makes any hot drink go cold.
FROGGIE!
20
Years of Service
User Offline
Joined: 4th Oct 2003
Location: in front of my computer
Posted: 9th Sep 2006 17:55
Ok, so ive now got it to the point where it springs back but how do i make it so that it only rotates on the y axis when the ball hits it?

HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 9th Sep 2006 22:19
Hey! well done you got round what I could not get to do.
Is this near to what you are after still wobbles but stays fixed.

this it the line add

Quote: "rem add this bit. <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
phy make fixed joint 4,10,1"




Dark Physics makes any hot drink go cold.
FROGGIE!
20
Years of Service
User Offline
Joined: 4th Oct 2003
Location: in front of my computer
Posted: 10th Sep 2006 15:03
Yes, thats it, thanks HowDo.

Login to post a reply

Server time is: 2024-04-20 15:21:43
Your offset time is: 2024-04-20 15:21:43