Jump to content

Recommended Posts

Posted

Are we able to change the LE unit measurement? I had my little test scene setup where I positioned the camera to the player, the did camera:Move() to move it up and back by a certain value. I was then messing around with animations sequences, reimporting the model, I had to close/reopen the editor a few times because of a bug where even a left click was registering as a right click in the asset window. Then one time when I reopened the editor back up and ran the game the camera was way higher and way farther back and those values didn't change. Not also I notice GoToPoint() isn't working right. The values I'm getting when I pick the csg ground are like the scale changed a ton. To get only a 1 unit change in value I have to click way way far from the player and even so the player isn't going to the right point because the values are clearly wrong.

 

 


if self.window:MouseHit(Key.LButton) then
   local p = self.window:GetMousePosition() 
   local pickinfo = PickInfo()

      -- picking the ground
      if self.camera:Pick(p.x, p.y, pickinfo, 1, true) then
         self.gotoPos = pickinfo.position
         self.player:GoToPoint(pickinfo.position, 1, 1)
         self.animationSequence = PlayerAnimations.Walk
      end
end

 

This was the same code I was using when it was working

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.

×
×
  • Create New...