Jump to content

[ SOLVED ]SetPosition( Vec3, isGlobal )


Yue
 Share

Recommended Posts

Script.mHead = "Entity" --entity "Head Mesh"


function Script:Start()
	
	--self.mHead:Hide()

	self.boneH = self.entity:FindChild("mixamorig_Head")
   
	


end



function Script:UpdateWorld()
	
	
	if Window:GetCurrent():KeyHit(Key.A) then  
		   self.mHead:SetPosition(self.boneH:GetPosition(),true)
	end

end

 

I'm trying to position a net on the player's head bone, but it's put in the middle of the world in the middle of his legs, which I'm doing wrong.
image.thumb.png.8e65ababdcae2e4f3dceed0d205af3d9.png

 

image.thumb.png.a8dce312316dfaefb1cf9ee362821c53.png

Mars.jpg.89ab63a64eebc1f5ada0ab82b66a1f8c.jpg

 

 

Link to comment
Share on other sites

  • Yue changed the title to [ SOLVED ]SetPosition( Vec3, isGlobal )

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...