Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Model Editor Help Need help with custom lever
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#1
Need help with custom lever

Hi everyone!
So, my CS needed a custom lever. And I made it. But every custom thing always gives problems. The problems are the following ones:

-The lever base moves with the handle.
-It doesn't move up to down, it moves left to right. (An axis problem, but where's the F***ING axis option?)

I checked the joint, the bodies, but there's something that escapes from my knowledge. I'm sure that is something wrong in the joint (hinge).

Here is the lever (I know, it's very basic, but it's a lever.)

[Image: amnesia2012091211362855.jpg]
[Image: amnesia2012091211363346.jpg]
[Image: amnesia2012091211363568.jpg]

As always, it will be very silly, because I always find complicated things but I fail at simple.

Have a nice day!

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
(This post was last modified: 09-12-2012, 10:55 AM by The chaser.)
09-12-2012, 10:49 AM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#2
RE: Need help with custom lever

Were the meshes separate in the 3D model program before you exported? Did you create two bodies, one for the base and the other for the lever? Did you attach the bodies to the intended meshes? Did you properly parent the base to the joint and made the lever the child of the joint? Is the entity a lever type?

Tutorials: From Noob to Pro
09-12-2012, 01:48 PM
Website Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#3
RE: Need help with custom lever

Yes, in Blender they were separate. The body (base) is parent in the hinge joint and the body of the handle is the child.
I fixed the body, now the base doesn't move. Now I only need to know how to change the axis and I will be done.
The body mesh didn't have a body because in the lever_nice01 the base mesh didn't have a body. And yes, it is a lever in User Defined Variables.
Sorry for bad english Sad

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
(This post was last modified: 09-12-2012, 03:15 PM by The chaser.)
09-12-2012, 03:15 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#4
RE: Need help with custom lever

Joints tend to have a white arrow to them in the editor. This helps you figure out how it would turn and in which direction the body will go in. Rotate the joint until it works for you.

Tutorials: From Noob to Pro
09-12-2012, 03:52 PM
Website Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#5
RE: Need help with custom lever

I'll see, then.

I just rotated the model and it works. Thanks for answering, anyway.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
(This post was last modified: 09-12-2012, 04:27 PM by The chaser.)
09-12-2012, 04:14 PM
Find




Users browsing this thread: 2 Guest(s)