Jump to content

Character controller flip 180


Alienhead
 Share

Recommended Posts

In leadwerks, the player controller physics collider had a physics angle assigned to it, for flipping the direction of the character. 

I haven't been able to duplicate this in Ultra yet, all my attempts at creating a controller with a custom player have resulted in my characters being backwards.  Coming out of mixamo i don't have the ability to simply turn my axis in a modeling software.

How to achieve this ?

flip.thumb.jpg.86d9c3c4e6427f5fad0198a454ec87f9.jpg

 

Would you suggest using a cube for the actual player physics and just have the player mesh tag along ( giving me the ability to rotate it 180 ) ??

I'm only happy when I'm coding, I'm only coding when I'm happy.

Link to comment
Share on other sites

A quick cheat, but I'm certain theres a more proper way to do this.

    self.entity:SetInput(self.camera.rotation.y, movement.z, movement.x, jump, crouch)
    self.entity:SetRotation(0, self.camera.rotation.y + self.modelangle - 180, 0)
 

I'm only happy when I'm coding, I'm only coding when I'm happy.

Link to comment
Share on other sites

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...