Hello, I'm trying to do something that I thought would be simple. I want to make an object move and launch the rider into the air. Unfortunately, when I use an OPE to move the object up, the rider just falls through the object instead of being pushed by the object. I assume I'm missing something simple, but I've watched all of the tutorial videos covering physics and a number of other youtube videos and I can't find an answer. Any help would be appreciated. Thanks!
Thank you, I'll give it a shot tomorrow. I really did watch a lot of videos, but I guess I was searching for the wrong thing.Originally Posted by Jonny Go to original post
After watching the videos, it seems Physic Joints are exactly what I expected... Nevertheless, I attempted to make it work for me since you believe it to be the answer. I can't even get my object to move properly with the physics joint. I am trying to use a slider since I want my object to move up, thus launching the rider. Even if I can get the object to move up properly with the joint, why would this work when an OPE doesn't? I can make my object move exactly the way I want it to with the OPE, but my rider falls through the object. Won't the rider still fall through the object if I use some other method to move it? I can't believe nobody has done a tutorial on how to launch a rider with an object. There are plenty of tutorials on moving objects, but the closest thing I've found to what I want are videos showing elevator like motion, and even in those videos when the object is moving very slowly, the rider tends to get 'sucked into' the object, like it it was moving faster the rider would go right through it the way mine is... This can't be this hard?
Im not really in a position to make a guide for you and wont be for another few weeks sadly but hopefully i can help you understand why you need to use the physics joint. OPE animation only teleports the selected object between different points depending on the distance it has to move and the time you want it to happen. It doesn't create a smooth transition between two points even though it may look that way. The reason you fall through or appear to sink into a lift style object is because the distance the object moves per tick is placing the object inside the bike. A slow movement will only move a tiny distance per tick, giving the sinking visual but a fast movement will move the object much further per tick so the second tick in the movement will be pretty high passing through the bike. That is my understanding of it but I'm sure someone else could give a better description. If you are still in need of more detailed help in 2 weeks when i get home il gladly make a guide for it.
Hi dude I'll try to keep this as short as possible
You will need:
3 Uber ramp section XL
1 area trigger
1 physics event
1 set value event
1 variable data source
1 physics joint (slider)
Place the uber ramp on the d/l(this is where the checkpoint/rider start), copy it and place this one along the driving line but leave a small gap. copy it again and place it directly below it but leave a gap again.
Select the top ramp and go into object properties:-
Physics = off
Lock to d/l = on
Advanced physics:-
Mass = 10kg
Now select the physics joint :-
Type = sliders
Preset = single axis
Properties = user defined
Target 1= top ramp
Target 2= bottom ramp
At this point the pivot will be visible so select that and rotate until the arrows are pointing up/down and go back into properties:-
Linear settings:-
Linear motor:-
Enabled = press Y to pick value object and select the Variable Data Source (0.00)
Target velocity = 2500
Max force = 2500
Linear settings:-
Lower limit Y = -10.00
Upper limit Y = 0.00
(Depending on which way your pivot is rotated you may have to swap these figures around)
Now take the Area trigger and place it just past half way along the ramp then go into properties:-
On hit = Physics Event
Select the Physics Event and go into properties:-
Type = on
Select event targets = top uber ramp
Select event/filter = Set Value Event
Select the Set Value Event - properties :-
Type = set
Value = 1.00
Set Event Target = Variable Data Source
So as you start what happens is the area Tigger is hit, the physics on the ramp is turned on and the set value event turns on the physics joints motor (0= off/1=on) this should send you up in the air. Adjusting various things like the ramps weight (or dampening) or the motor Max force/velocity will change how it reacts so you may need to tweak these settings to your needs.
Hope this helps![]()
BMXBandit,
I finally got some time to attempt this and unfortunately nothing happens. Literally nothing happens when I hit the area trigger. I have used area triggers in past tracks so I know that is not the issue. I'm certain it is turning the physics event on. Where it breaks down after that, I'm not sure. I think you left one link out of your description... What do I point the set value event (1.00) at? I assume it should be pointed at the data source that is feeding the value on the linear motor, which I tried, but it doesn't work. Do I need something like an interval trigger to tell the physics joint to pick up the new value from the data source? Thanks again.
Very sorry dude, I did miss a bit out but you worked it out - the Set Value Event should target the Variable Data Source so when triggered it changes from 0.00 to 1.00
I tried doing this again just by following the instructions and it worked OK so I tried to think of some things that may have gone wrong
- Top uber ramp too close to the one next to it, this usually results in a small movement before it gets stuck but you can see the physics is on and the trigger and motor are working.
- make sure you have the right Enabled option selected in the Physics joints properties > Linear settings > Linear Motor > Enabled
If you have the Main Enabled option tied to the V.D.S. it just does nothing when activated like you describe.
- try rotating the physics joints Pivot, I had varied results when trying out different combinations of Pivot rotation and Linear Upper and Lower Limit settings
I cant think of anything eles for now but if you're on Xbone there are some screen shots and clips of my setup on Upload if that might help.![]()