I understood what you meant, but maybe I can try to explain a bit of what is actually happening with the code. The camera is actually very simple, but it doesn't look like it.Originally Posted by Barrybarfly
and JaminBen007, I would guess that it IS missing an impulse somewhere. The only way you can lean with that setup is with the Bike Control Lean. If it is not getting an impulse and a number(how much to lean) then it won't work. Have to chat with you later though. I gotta go for now.
Added some explanation for the manual camera controls. It doesn't explain the messy bit on the left that involves the gas and brakes, but it should help explain the left and right analog controls part.
Edit:
Also added a new OPE to the list. Doesn't get much easier than this one. Clones the movement from a physics enabled object to a non-physics enabled object. Need to double check settings on the OPE later, though.
OK I found a couple of bits that were not set up correctly and now my rider always leans forward. I can lean him back but as soon as I release the stick he leans forward again.
I don't have the Left and Right stick disabled because as soon as I do he doesn't move at all.
Any help appreciated![]()
That is the thing right there. Left and Right HAVE to be disabled. All that logic is manually setting up the controls based on the left stick horizontal values. They WILL work with the left and right disabled. leaving left and right on will only interfere with the logic for the lean controls.Originally Posted by JaminBen007
If it's not leaning when the left and right are disabled then something isn't connected right. Let me know if that's the case.
That's actually just the way it is set up right now. I didn't think it was needed as this is really only for testing. You could add the left and right buttons make them go disabled when the camera is moving. Seemed like that would only make it more confusing for people than it needed to be.Originally Posted by Barrybarfly
That is the case. I know I need to split an impulse off the splitter but I don't know where to put it. Also, I've used all the logic on the right hand side of the tutorial, not just the bottom right corner, is that correct?Originally Posted by Luthanick
Thanks again mate
On a separate note, I've been looking at ways to use the musical notes provided in the tutorial to make my own custom tune.
Whichever way you look at it, it's going to get very complicated very quickly, but I think this diagram will be the "easiest" set up.
Anyone else have any other suggestions for easier ones or thoughts on this one?
The above method will use a hell of a lot of logic as I'll need a splitter/sound event/delay filter/sound object/impulse clamp for every note. The alternative is to have one sound object for each different note, and time the impulses so they hit each one at the correct moment. Absolutely no idea how that would work though.
You can also use a single sound source: trigger it on, and send its impulse to a chain of set value events to change its pitch and volume. You'll have to set the pitch to a 2 input operator, which divides the pitch value by 100 to convert it to its proper decimal value.