Playmaker Forum

PlayMaker Feedback => Action Requests => Topic started by: treborjones on July 21, 2015, 05:50:41 PM

Title: WheelCollider Get World Pose[SOLVED]
Post by: treborjones on July 21, 2015, 05:50:41 PM
Hey peeps, I chucked this message in playmaker help but it doesn't seem that the action exists. I'm looking for an action to cover some of the GetWorldPose functionality. Documented here

http://docs.unity3d.com/ScriptReference/WheelCollider.GetWorldPose.html

If anyone is able to create me an action that uses this to return rotation values from the wheel collider in unity 5 I'd give them a big high five and internet thank you.

Cheers,
Bob.
Title: Re: Get World Pose
Post by: gozda on August 14, 2015, 02:55:05 AM
Bump:)
Title: Re: Get World Pose
Post by: jeanfabre on August 17, 2015, 12:34:29 AM
Hi,

 It's on the Ecosystem, can you try it, and tell me if that works? I haven't tested it.

the action is called WheelColliderGetWorldPose (https://github.com/PlayMakerEcosystem/PlayMakerCustomActions_U5/blob/a8d61d220c5ef5187b45dfa8c766f40f999440e3/Assets/PlayMaker%20Custom%20Actions/Physics/WheelColliderGetWorldPose.cs)

 Bye,

 Jean
Title: Re: Get World Pose
Post by: gozda on August 17, 2015, 02:43:15 AM
No, this action dont work. I tried in many ways but this dont work properly. Every time when i tried, wheel collider looks like he detached and have his own behavior.
Title: Re: Get World Pose
Post by: jeanfabre on August 17, 2015, 06:14:04 PM
Hi,

 This is not controlling the WheelCollider at all, this is just feedback on where the wheel is.

 what are looking to do with the wheelcollider and why do you think you need this worldPose position and rotation?

Bye,

 Jean
Title: Re: Get World Pose
Post by: gozda on August 18, 2015, 02:39:20 AM
I got separated wheel(mesh) and wheel collider object.
I need to know where wheel collider is for set the same position for wheel mesh.
I dont need rotation, this i can set or get in "set/get Property" action.
Just when i put action "Wheel Collider Get World Pose" in wheel collider object without choose any variable, object start having his own behavior.
Title: Re: Get World Pose
Post by: Ducat on May 10, 2019, 10:57:08 AM
Well. It's still broken.
When I only put the "Wheel Collider Get World Pose" action, and switch it to every frame - the Wheel Collider is just goes crazy :(

And I just want my car's wheels to spin along with it's WheelCollider...
Title: Re: Get World Pose
Post by: Ducat on May 11, 2019, 12:51:17 AM
Here's the video of this issue
https://youtu.be/T1qW7993RMc (https://youtu.be/T1qW7993RMc)
Title: Re: Get World Pose
Post by: 600 on May 11, 2019, 05:42:15 AM
Hi, can confirm, tested and same issue here.
Title: Re: Get World Pose
Post by: jeanfabre on May 17, 2019, 01:22:34 AM
Hi,

Is it not a case that you have a feedback loop in your hierarchy, try to have your wheel not attached to the car itself.

 else, can you send me a test scene, and I'll test and see how it should be done properly.

 Bye,

 Jean
Title: Re: Get World Pose
Post by: 600 on May 17, 2019, 10:15:56 AM
Hi,
Thank you for checking this Jean!

I have attached a test scene.
It includes the pose action as well, only need to import Playmaker.
Made in Unity 2017.4.22f1 and PM 1.9.0p15
Title: Re: Get World Pose
Post by: jeanfabre on May 20, 2019, 05:10:43 AM
Hi,

 ok, this is fixed! finally!... I found the stupid issue, it's corrected and up on the ecosystem!

Can I use your scene to make a sample of it on the Ecosystem? I'll credit you of course.

one important note: always prefer using actual actions instead of SetProperty, you can do it all with actions here:

(https://i.imgur.com/2KK48tc.png)

Bye,

 Jean
Title: Re: WheelCollider Get World Pose[SOLVED]
Post by: 600 on May 20, 2019, 07:16:14 AM
Hi,

Thanks this is great and I didn't know about the other actions!

Sure, feel free to share the scene and car model :)
Title: Re: WheelCollider Get World Pose[SOLVED]
Post by: jeanfabre on May 21, 2019, 02:26:22 AM
Hi,

Cool :) thanks for that!

 Bye,

 Jean
Title: Re: WheelCollider Get World Pose[SOLVED]
Post by: Ducat on May 25, 2019, 04:41:46 AM
4 years has been passed...
I'm glad it's finally fixed.
Thank you
Title: Re: WheelCollider Get World Pose[SOLVED]
Post by: jeanfabre on May 30, 2019, 05:27:51 AM
Hi,

 This car is now available as a sample on the Ecosystem

(https://i.imgur.com/JXf0I9b.gif)

I improved it, with using custom actions instead of SetProperties, which is best of course, and I also added proper reverse ( space bar when idling) and brake :)

 Thanks to 600 for the model!

 Bye,

 Jean