playMaker

Author Topic: [SOLVED] Object not moving after adding rigidbody  (Read 2147 times)

heavygunner

  • Sr. Member
  • ****
  • Posts: 344
[SOLVED] Object not moving after adding rigidbody
« on: September 03, 2018, 08:51:16 PM »
Hi !

Object should move left. Once it hit, It should move right. Again, once hit, Ift will move left.

It is working perfect. But, after added rigidbody, Object not moving after hit ground.

I am following a PlayMaker course. I followed everything, but I don't know why this happening :(

Issue Screen capture >> https://youtu.be/rm2uEoOBuos  :o
« Last Edit: September 04, 2018, 08:20:02 AM by heavygunner »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: Object not moving after adding rigidbody
« Reply #1 on: September 04, 2018, 12:55:51 AM »
Hi.
It is because rigidbody uses physics and overrides the itween move

You can use for example 'Set Velocity' (every frame)
And you might want to make a parent (cube or capsule) and place the rigidbody there.
You can disable the mesh to make it invisible.
Then also do some constrains on the rotation so it wont roll over.
Then drop in your 'ground enemy'
and do the movement on the parent.

Parenting is a very common thing with character (and other things) as it give a lot more freedom of what to do with them.

What course you where following?

heavygunner

  • Sr. Member
  • ****
  • Posts: 344
Re: Object not moving after adding rigidbody
« Reply #2 on: September 04, 2018, 07:49:01 AM »
Hi.
It is because rigidbody uses physics and overrides the itween move

You can use for example 'Set Velocity' (every frame)
And you might want to make a parent (cube or capsule) and place the rigidbody there.
You can disable the mesh to make it invisible.
Then also do some constrains on the rotation so it wont roll over.
Then drop in your 'ground enemy'
and do the movement on the parent.

Parenting is a very common thing with character (and other things) as it give a lot more freedom of what to do with them.

What course you where following?

1. Don't get where to add Velocity thing

2. I tried many thing, nothing worked well.

3. I added empty game object and added rigidbody to it. And made it as parent. it worked. But, not working perfectly.

Screen capture : https://youtu.be/l1aJZoKl7PI

I am following this Playmaker course >> http://jonathan-oduffy.thinkific.com/courses/playmaker-101-the-complete-course

heavygunner

  • Sr. Member
  • ****
  • Posts: 344
Re: Object not moving after adding rigidbody
« Reply #3 on: September 04, 2018, 08:19:29 AM »
Yay !

I added Set Velocity to Parent Empty Object. It's working like a champ  8)

Thank you  :-*

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: [SOLVED] Object not moving after adding rigidbody
« Reply #4 on: September 04, 2018, 11:10:28 AM »
Hi.
Happy to help :)