Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: ToxicFrog on September 22, 2022, 01:44:06 PM

Title: Vector3 Help - Apply Torque force at position
Post by: ToxicFrog 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!
Title: Re: Vector3 Help - Apply Torque force at position
Post by: djaydino on September 24, 2022, 02:23:50 AM
Hi.
I think that torque target should be parent of the pink cube or main parent