playMaker

Author Topic: Vector3 Help - Apply Torque force at position  (Read 158 times)

ToxicFrog

  • Beta Group
  • Full Member
  • *
  • Posts: 139
Vector3 Help - Apply Torque force at position
« on: September 22, 2022, 01:44:06 PM »
Hey Playmakers!

I could really use some help with Vector3 math here.

I have a Capsule (Rigidbody) with a child (Pink Cube) that is always looking at MainCamera.

I want to apply Torque Force to the Capsule at the location of the Green Sphere (which is a child of camera-facing Pink Square).

In other words, the Torque Force needs to tilt the capsule away from the camera, regardless of the Capsule's local rotation.

I hope that makes sense - I've attached an image to illustrate.

I appreciate any help and suggestions!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7086
    • jinxtergames
Re: Vector3 Help - Apply Torque force at position
« Reply #1 on: September 24, 2022, 02:23:50 AM »
Hi.
I think that torque target should be parent of the pink cube or main parent