playMaker

Author Topic: Object splitting in two when rotated  (Read 2734 times)

BigDaz

  • Playmaker Newbie
  • *
  • Posts: 11
Object splitting in two when rotated
« 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.



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.

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Object splitting in two when rotated
« Reply #1 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?
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

BigDaz

  • Playmaker Newbie
  • *
  • Posts: 11
Re: Object splitting in two when rotated
« Reply #2 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


jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Object splitting in two when rotated
« Reply #3 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

BigDaz

  • Playmaker Newbie
  • *
  • Posts: 11
Re: Object splitting in two when rotated
« Reply #4 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.

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Object splitting in two when rotated
« Reply #5 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.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Object splitting in two when rotated
« Reply #6 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