playMaker

Author Topic: Problems with making a elevator work.  (Read 3045 times)

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Problems with making a elevator work.
« on: September 02, 2014, 08:30:33 PM »
In my game I have a object with collision that operates as an elevator by using itween move by action with an collider. Whether it's with a rigidbody or not, the player(with a rigidybody and character controller) either pushes down the elevator object or goes through it.

Plus when I applied a rigidbody to the moving object with more mass I basically get the same results.


Phuzz

  • Full Member
  • ***
  • Posts: 101
    • Bzilla Games
Re: Problems with making a elevator work.
« Reply #1 on: September 03, 2014, 05:42:20 AM »
I dont really understand your question, but from what I get maybe ignoring gravity on the elevator would help?
Bzilla Games "Education with a Tickle!"
Qbucket Games "Voxel Games"

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Problems with making a elevator work.
« Reply #2 on: September 03, 2014, 07:13:25 AM »
Make the Elevator Kinematic and ignore Gravity. When the player enters it then set it as a child of the elevator.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Re: Problems with making a elevator work.
« Reply #3 on: September 03, 2014, 05:45:10 PM »
Make the Elevator Kinematic and ignore Gravity. When the player enters it then set it as a child of the elevator.


What about other options on the rigidbody besides gravity? Like with mass, drag, and etc, because I get the same results when I enable Kinematic on the objects rigidbody with or without gravity. Plus does it matter whether the elevator object is parented or vice versa?

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Re: Problems with making a elevator work.
« Reply #4 on: September 04, 2014, 07:28:45 PM »
Plus, isn't there a way to have the play snap to an empty object parented to the moving object? I thought that would be help with it. Because still, if I increase drag it take longer for the player to fall through it.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15620
  • Official Playmaker Support
Re: Problems with making a elevator work.
« Reply #5 on: September 08, 2014, 07:46:01 AM »
Hi,

 you should be able to do an elevator without any fancy trick. I have a working scene for this:

http://hutonggames.com/playmakerforum/index.php?topic=1552.msg6745#msg6745

I also attached a version I re exported few weeks ago, so I would check both.

 Bye,

 Jean