playMaker

Author Topic: Making an object fall to the ground from any given height  (Read 765 times)

qwerty

  • Playmaker Newbie
  • *
  • Posts: 2
Making an object fall to the ground from any given height
« on: March 19, 2021, 05:17:23 PM »
I'm trying to make an object that can fall to the ground when the button E is pressed, but I have no idea what actions I am supposed to use to make the object FALL from ANY given height.

So basically what I'm asking is what actions do I use in playmaker to make the object FALL onto the ground from ANY given height whenever the button E is pressed.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 6951
    • jinxtergames
Re: Making an object fall to the ground from any given height
« Reply #1 on: March 19, 2021, 07:08:59 PM »
Hi.
Is the object something you create or is it something inside the scene
Do you need to select it?

Can you give some more info on your use case :)

qwerty

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Making an object fall to the ground from any given height
« Reply #2 on: March 19, 2021, 07:26:42 PM »
It is an object inside the scene, and it does not have to be selected in order for the object to fall.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 6951
    • jinxtergames
Re: Making an object fall to the ground from any given height
« Reply #3 on: March 20, 2021, 06:33:16 AM »
Hi.
Ok, make sure the Object has a rigidbody(2d)

for rigidbody set 'Is Kinematic' on as default.
for rigidbody2d select body type 'Kinematic'

then use get key down action and in the next state use 'Set Is Kinematic (2d)'
on the object and turn it Off