playMaker

Author Topic: Get Collision Info weirdness  (Read 673 times)

curb47

  • Sr. Member
  • ****
  • Posts: 256
Get Collision Info weirdness
« on: December 15, 2020, 10:06:13 AM »
Hiya,
I've got a problem. I need to move my spaceship health/stats/forcefield/energy etc over to a Manager object, and off the spaceship object itself.

The spaceship has a rigidbody & collider, and works fine.

When the spaceship collides with an object, such as an asteroid, I need to get the Relative Velocity to calculate the amount of damage done to the ship, or how much energy is drained from the forcefield.

When the Get Collision Info was on the spaceship, it worked fine:


I have reconstructed the entire FSM from scratch on a different object (ship Manager) to avoid any copy/paste issues, but when the ship collides with an object, the Get Collision Info is not registering the Relative Velocity:


What's going wrong here?

Thanks.