Edited by uhmattbravo, 08 September 2017 - 04:53 AM.
Tracking 'tilt' on a creature
Posted 08 September 2017 - 04:52 AM
Posted 12 September 2017 - 04:32 AM
What are you thinking for the script to track and manipulate that ? Even if GetAngle worked ?
This is for the car to follow the ground ?
Posted 12 September 2017 - 03:41 PM
Edited by uhmattbravo, 12 September 2017 - 03:42 PM.
Posted 12 September 2017 - 05:22 PM
Oh so the car is tilting fine with the land , but since Actors can't tilt , their head is clipping through the windshield / side window when the car is on an angle ?
Could you place an invisible object , or set a small node point on the creature for the front and side window.
Then in your script check the actors distance to them adjusting their z position to keep the distances fairly constant?
Add edit: Oh wait , Z position? you mean up/down ? I was saying to adjust their X,Y offset to the creature center then? Why would you adjust their Z offset based on the tilt ?
I guess maybe I was assuming to much ?
Edited by Mktavish, 12 September 2017 - 05:38 PM.
Posted 12 September 2017 - 06:08 PM
Actually with a duh moment , I realized the creatures parts left and right of center do change their z position while the creature center does not when tilting. So now I see ... but still seems you can use get distance on 2 points to tell you the same thing as get angle.
Would it be possible for a seat node to be the new center for where to offset the actor ?
Albeit troublesome compared to getangle should just work , but doesn't for what ever reason.
Edited by Mktavish, 12 September 2017 - 06:11 PM.
Posted 12 September 2017 - 06:24 PM
Basically, but more often through the roof and dashboard.
"Could you place an invisible object , or set a small node point on the creature for the front and side window.
Then in your script check the actors distance to them adjusting their z position to keep the distances fairly constant?"
Theoretically, but it'd be a lot easier if I could use those angles.
"Why would you adjust their Z offset based on the tilt ? "
So you can see over the dash/hood when driving a longer vehicle uphill.
Posted 12 September 2017 - 07:22 PM
In some cases. I intend to re-rig and animate the flea in this manner, but with big trucks, it made them look funny when turning and made the collision (on the skeleton) crap out. The latter of which is an issue I've been having with wider creatures for a while, but it looks like it may be caused by too much length from center as well.
Posted 14 September 2017 - 11:43 AM
When you say re-rig ... you mean using a different piece as the center for the whole creature ?
So having an offset center like the drivers seat , would make it rotate funny.
But no , I was talking how creatures have weapon nodes which show up in the model list, I thought rotating around their center ???
So was thinking the drivers seat could be set up like that , and then offset the player position on that node center , while the creature itself still functions on its true center.
Or am I just talking out my arse ?
Edited by Mktavish, 14 September 2017 - 11:47 AM.
Posted 14 September 2017 - 05:49 PM
Basically I have it turning based on the creature's center, and the flags make the creature tilt on it's own center, but the player doesn't sit at the creature's center when driving.
In theory, I could use projectile nodes and invisible explosions to check their positions, but that's a lot of additional scripting which could potentially cause stuttering.
Right now, I have a passable enough build in spite of the few issues i had to compromise on and hopefully, I'll have a sort of light version to tide me over for a playthrough before I go too crazy expanding the concept and implementation done and uploaded in a day or two and you can get a better idea of what I'm talking about if you're still curious.
Edited by uhmattbravo, 14 September 2017 - 05:50 PM.
Posted 15 September 2017 - 04:17 AM
Cool , ya definitely curious .