Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: BigDaz on September 08, 2013, 04:28:25 PM

Title: Object splitting in two when rotated
Post by: BigDaz on September 08, 2013, 04:28:25 PM
Hello, I'm trying out Playmaker for the first time. I'm quite impressed with it.

However I've run into a problem when rotating objects. I've made a bomb disposal style robot and following the tutorial for rotating objects, I've made sliders for all the moving parts.

(http://i39.tinypic.com/2vnglzm.jpg)

Everything is working great but for some reason Arm Sections 1 + 2 split in 2 when rotated more than 90 degrees. It doesn't show up in screenshots or video which is annoying. So first can somebody verify that it's not just me using the webplayer:

http://dl.dropboxusercontent.com/u/181824179/Webplayer.html

You can use arrow keys to drive about. The sliders move the articulated arm.

Secondly any suggestions for a solution? Thanks a lot.
Title: Re: Object splitting in two when rotated
Post by: Lane on September 08, 2013, 04:37:37 PM
Its not splitting in two, its moving between two points really, really fast and we're seeing a ghost effect on the second position.

can you post pics of the FSM controlling its movement?
Title: Re: Object splitting in two when rotated
Post by: BigDaz on September 08, 2013, 04:49:35 PM
This is the Arm 1 controller.
They're all set up the same way as far as I can tell

(http://i43.tinypic.com/2r5tf75.jpg)
Title: Re: Object splitting in two when rotated
Post by: jeanfabre on September 09, 2013, 08:44:04 AM
Hi,

NICE!

 I think you are trying to do exactly what I did with my excavator:

http://www.fabrejean.net/projects/excavator/

Is your set up using physics? I mean do you expect the claws to have impact on object around itself?

The excavator above is a 100% physics based solution, you may want to look into this. There is a package which features the basics component I used to set this up:

http://forum.unity3d.com/threads/66871-Excavator-simulation/page2

 Bye,

 Jean
Title: Re: Object splitting in two when rotated
Post by: BigDaz on September 11, 2013, 02:29:56 PM
Thanks yes it is similar to your excavator, I'll take a look at that.
 
I'm still experimenting so I'm not sure how far I'll take it. I started off using hinge joints and it can do a chain of 2 very well but quickly became unstable with more than 2 parts. Then I found it to be easier to just add collision to each part and simply rotate them without separate rigidbodies. I haven't had chance to test it fully yet because of this rotation problem but it seems to work fairly well.
Title: Re: Object splitting in two when rotated
Post by: Lane on September 11, 2013, 02:55:35 PM
I would assume it's some weirdness coming from the use of rotations/transforms with the physics, you can get some weird artifacts from that.
Title: Re: Object splitting in two when rotated
Post by: jeanfabre on September 13, 2013, 03:12:16 AM
Hi,

 IT's actually the complexitiy of the rig that makes the physics set up VERY sensitive to anything only slightly not properly set... So here, you should prepare yourself for some very intense trial and errors until you get it right.

 the #1 trick is to have your base physics go set as "is kinematic" until you arm movement is 100% spot on and reliable, only then you can look at unleashing the arm rig into a vehicle that in turn can move around. Else you have too many issues to solve in one go

bye,

 Jean