• Hi Guest!

    We have posted a new VaM2 dev log on Patreon, starting a monthly cadence of written progress updates between Beta releases. Highlights include the new Gizmos System, Selection Carousel, and Modes System with Context-Specific Editing. Beta1.2 is 15 of 21 items complete.

    Read the full post on Patreon, or follow progress on the public Trello roadmap.

Solved Retreive personnal hand position by script (vr mode)

stardust62

New member
Joined
Mar 21, 2021
Messages
2
Reactions
1
Hello,

I saw that to get hands positon by script, we have to call these methods below, but i don't know what is the class where these functions are declared, so i can't call them.
could someone please help me ?

// Transform of the player (center between the eyes)
//public static Transform GetPlayerHead();

// Transform of the left hand, returns null in Desktop mode
//public static Transform GetPlayerLeftHand();

// Transform of the right hand, returns null in Desktop mode
//public static Transform GetPlayerRightHand();
 
Solution
Seems you have been looking at documentation for my old VaM-ScriptEngine mod. That was before VaM officially supported plugins, back in 2018...the dark ages of VaM. Because of the success of that, Meshed added the proper plugin support we have now. However, it's hopelessly outdated now. Please just ignore that documentation, it will just be more confusing than helpful.

Anyway, you can get the Transforms like this:
C#:
// player head
CameraTarget.centerTarget.transform

// left/right hand
SuperController.singleton.leftHand
SuperController.singleton.rightHand
Seems you have been looking at documentation for my old VaM-ScriptEngine mod. That was before VaM officially supported plugins, back in 2018...the dark ages of VaM. Because of the success of that, Meshed added the proper plugin support we have now. However, it's hopelessly outdated now. Please just ignore that documentation, it will just be more confusing than helpful.

Anyway, you can get the Transforms like this:
C#:
// player head
CameraTarget.centerTarget.transform

// left/right hand
SuperController.singleton.leftHand
SuperController.singleton.rightHand
 
Upvote 0
Solution
Seems you have been looking at documentation for my old VaM-ScriptEngine mod. That was before VaM officially supported plugins, back in 2018...the dark ages of VaM. Because of the success of that, Meshed added the proper plugin support we have now. However, it's hopelessly outdated now. Please just ignore that documentation, it will just be more confusing than helpful.

Anyway, you can get the Transforms like this:
C#:
// player head
CameraTarget.centerTarget.transform

// left/right hand
SuperController.singleton.leftHand
SuperController.singleton.rightHand
Hello @MacGruber, big thanks for that, realy appreciate :cool:
 
Upvote 0
Back
Top Bottom