playMaker

Author Topic: rigidbody stopped moving[SOLVED]  (Read 1433 times)

heavygunner

  • Sr. Member
  • ****
  • Posts: 344
rigidbody stopped moving[SOLVED]
« on: September 08, 2018, 06:14:20 PM »
Hi !

I am new. Learning Playmaker.
Created a Donkey Kong prototype.

I am facing Issue on Barrel Spawn Mechanism.

I set a trigger collider. Once barrel triggered that, new barrel will spawn on spawn point.

Suddenly, 6th barrel spawned is not moving.  Also barrel also rolling damn slow. How to increase the speed?

Pls check video. Play x2 speed. 
Thank You
« Last Edit: September 11, 2018, 04:02:53 AM by jeanfabre »

PolyMad

  • Hero Member
  • *****
  • Posts: 545
Re: rigidbody stopped moving
« Reply #1 on: September 09, 2018, 07:31:10 PM »
Barrels fall thanks to gravity I guess.
Either you make steeper floor inclination, or you will have to change the gravity value.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: rigidbody stopped moving
« Reply #2 on: September 10, 2018, 02:55:35 AM »
Hi,

 your 6th barrel not moving is really weird...


also, to replicate Donkey King barrel, plain physics will not be enough, you will need to adjust the barrel speed and direction as it hits or leave a platform.

-- when it leaves a platform, give it a push down in force using acceleration or velocity ( not force) so that it goes down quicker.

-- when it touches the new platform, give it a push on the direction is should roll, so that it doesn't keep on rolling with its momentum in the wrong direction.

-- also play with mass and physics material to have it rebound slightly when it fall onto a new platform.

then, you'll be closed to the DK's barrel behavior.


Bye,

 Jean

heavygunner

  • Sr. Member
  • ****
  • Posts: 344
Re: rigidbody stopped moving
« Reply #3 on: September 10, 2018, 03:05:03 PM »
Hi,

 your 6th barrel not moving is really weird...


also, to replicate Donkey King barrel, plain physics will not be enough, you will need to adjust the barrel speed and direction as it hits or leave a platform.

-- when it leaves a platform, give it a push down in force using acceleration or velocity ( not force) so that it goes down quicker.

-- when it touches the new platform, give it a push on the direction is should roll, so that it doesn't keep on rolling with its momentum in the wrong direction.

-- also play with mass and physics material to have it rebound slightly when it fall onto a new platform.

then, you'll be closed to the DK's barrel behavior.


Bye,

 Jean

Yay !
Just completed my Donkey Kong :D
BTW, How to set friction details via PlayMaker?

Will start to work on Mario Prototype next :)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: rigidbody stopped moving
« Reply #4 on: September 11, 2018, 04:02:43 AM »
Hi,

 Good point, I just made them, they are now on the Ecosystem:

GetPhysicMaterialProperties
SetPhysicMaterialProperties

with these two you can set and get any of their properties.

Bye,

 Jean