I want to point the flashlight in my hand in the direction the camera is pointing.(手に持った懐中電灯をカメラが向いている方向に向けたい。)

I’m creating an FPS game.
The character’s body and the flashlight in his hand
I want to point it in the direction the camera is facing.
In the node below that I implemented, when you move the camera, the direction and angle of your hand changes,
The flashlight will also be off center.

I think the problem will be solved if you fix the arm so that the angle does not change.
But I don’t know how.

I would like to know the solution and how to do it.

FPSゲームを作成しています。
キャラクターの体と手に持った懐中電灯が、
カメラの向いている方向に向けたいです。
私が実装した以下のノードでは、カメラを動かすと手の向きや角度が変わり、
懐中電灯も中心からずれてしまいます。

角度が変わらないようにアームを固定すれば
問題は解決すると思いますが、
その方法がわかりません。

解決策とその方法をご教授いただけますでしょうか。


I took a video of what I was having trouble with.
I haven’t been able to resolve it yet.
Please lend me your wisdom.

困っているところを動画に撮ってみました。
まだ解決できていないんです。
どうかお知恵を貸してください。

Im no expert but it sounds like something like line trace by channel with some good math

BPのInput Yawを外し、ABPのボーン設定を手首に変えたら解決できました。

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.