PDA

View Full Version : Need Help with Rotational Bundle


Why?!
07-25-2005, 09:20 PM
EDIT: LOOK AT POST #6 FOR MORE INFORMATION

Ok I am working on a project that involves a rotational bundle. What I need is to get an object to rotate from a vertical upright position, to a horozontal position. I also need this to happen on two sides.

*Explanation to image below*

http://img278.imageshack.us/img278/1518/rotationalhelp3ik.gif

Figure 1 represents the left side object that needs to rotate to the left. With the code right next to it, it accomplishes this perfectly. While at the same time it does not allow it to rotate to the right.

For the opposite side I need to mirror these actions. So I simply do the exact opposite of what is shown in Figure 1.

With the code shown in Figure 2 the object will not budge no matter what I do. I have tried every combination (trust me, I have been at it for the past two days) of where to put the 90 and where to put -s.

Figure 3: I eventually on accident put both a 90 in maxrotation and a -90 in minrotation. When I did that I literally shouted with excitement as the object folded in the correct position. However I soon after noticed that it would also rotate in the same direction as the one on the left given the right input. With what I am working on I cannot have one of them moving in both directions.

Just to be clearer, the problem is that the object cannot rotate to the right, unless it is allowed to rotate to the left. Now I know that this just cannot be true and there absolutely must be a way to do this. There is no way that something this simple is hardcoded into the engine.

I already showed this to a friend who has no experience in coding. The thought behind this was that maybe the problem was so elementary that I am missing it. After he looked at it for awhile and he figured out what all the values did, he was as confused as I. I see no reason to the problem I am having right now.

Any help would be greatly appreciated. I am working on what I guess could be considered a spiritual successor to my original TurboJeeps 1942 mod, and I would really love to release it after seeing the reaction of the people I have shown it to.

Why?!
07-26-2005, 03:33 AM
Nobody?

I have already tried 2 crazy ways to fake the effect I need and both have not worked yet. I really want to see this mod released, but I cannot until I get this bug sorted out.

rexman
07-26-2005, 09:08 AM
Rotating to the right is relative only to the postion of the object. Rotate the object 180 degrees.


This worked for me though (rotates to the right):
minRotation 0/0/-90
maxRotation 0/0/0
maxSpeed 0/0/-1000
acceleration 0/0/-1000

inputToRoll PIThrottle

Why?!
07-26-2005, 03:25 PM
Rotating to the right is relative only to the postion of the object. Rotate the object 180 degrees.


This worked for me though (rotates to the right):
minRotation 0/0/-90
maxRotation 0/0/0
maxSpeed 0/0/-1000
acceleration 0/0/-1000

inputToRoll PIThrottle

:shock: The rexman replied to my thread. I have been blessed.

Anyway, as I have been saying, your second suggestion should have worked, but it did not. When I did this it only caused the bundle to not rotate in any direction at all.

If I am understanding your first suggestion correctly, that would not work in my case. While that would get the object in the desired position, it would not look right. The object must rotate to the right.

rexman, check your PMs.

grolsche
07-26-2005, 04:10 PM
It might be easier if you put in context of what you are doing, i.e. what exactly you want to rotate because its difficult to imagine something when you say i want this to rotate like this and this like this without explaining what this is.

Why?!
07-27-2005, 02:21 AM
Since I am going to put some silly little teaser on filefront sometime later, I will show what this is for.

http://s5.ultrashare.net/hosting/fs/76a63701f052d6e4/

Link is an 18mb 3 minute long video.

You will notice in the video that everything works perfectly. This is not the case. I did an extremely good job of hiding the bug. In actual gameplay you will notice it in an instant. As you can see in the video, the wheels on the left fold to the left 90 degrees, and the wheels to the right fold to the right 90 degrees.

However, the right wheels will only fold to the right if they are allowed to fold in the opposite direction. In gameplay you will notice this immediately. The reverse key puts the car in hovering with the wheels folded down as you see in the movie. When you try to move forward, the wheels will fold toward the left as the left wheels do. So when you are driving forward, you will see the left wheels on the ground just fine, but the right wheels are folded up in the wrong direction.

I have not found a solution to this problem at all. What baffles me is that there seems to be no way to make them only fold towards the right. I know there must be a way, because this is simply too elementary of a problem.

Since the video illustrates what I want to achieve, here is an image of the actual problem. This is what happens in normal forward movement.

http://img153.imageshack.us/img153/268/helpmeobiwan4cn.jpg

rexman
07-27-2005, 05:20 AM
Your problems might have to do with the wheels being springs.

Yarin
08-02-2005, 11:19 PM
I'm really sorry that I can't help you with your problem, but I just wanted to say that me and a friend of me are really impressed by your demo video. It must be so much fun to drive such a vehicle! Please get this mod out asap! :D

Why?!
08-03-2005, 12:16 AM
I have put this off until the editor comes out. I got really frustrated trying to think about a way to fix it. I spent 3 whole days last week only trying to fix the bug and following false leads.

Hopefully a solution will be available when the editor comes out. Right now I am working on a dogfighting thing that changes air to air combat quite a bit.

tf0t
08-03-2005, 12:45 AM
I have put this off until the editor comes out. I got really frustrated trying to think about a way to fix it. I spent 3 whole days last week only trying to fix the bug and following false leads.

Hopefully a solution will be available when the editor comes out. Right now I am working on a dogfighting thing that changes air to air combat quite a bit.


Can I have a hint on what that might be?

Wazz Pants
08-05-2005, 08:15 PM
Rotating to the right is relative only to the postion of the object. Rotate the object 180 degrees.


This worked for me though (rotates to the right):
minRotation 0/0/-90
maxRotation 0/0/0
maxSpeed 0/0/-1000
acceleration 0/0/-1000

inputToRoll PIThrottle

did you try adding the Negitive to the front of maxSpeed and Acceleration? just may have been a small thing that you missed...
cause in your case your wheels would be trying to rotate to the left while they're already fully to the left, but if the max speed and acceleration is negitive then it'll try moving to the right.
anyway hopfully its as small as this, if not just rotate it 180 degrees like rexman said.

Why?!
08-05-2005, 10:22 PM
Yes, trust me I tried every combination of negatives and positives. Now that the editor is out I just tested them all out again and got the same results. I'm still looking to see if there some workaround to this, or some command that will allow what I need to happen.