Jump to content

Change center pivot on Shape?


Yue
 Share

Recommended Posts

Just now, Slastraf said:

I dont think it is possible without directly accessing the mesh in c++.
You need to make a set for different body parts (legs, arms) and set the object's origin. In Blender additionally apply rotate, scale

I found the way, since I create the rigid bodies by programming, and it is at the time of creating the shape to change that central point on the mesh.

Mars.jpg.89ab63a64eebc1f5ada0ab82b66a1f8c.jpg

 

 

Link to comment
Share on other sites

On 12/21/2021 at 10:58 PM, Yue said:

Is it possible to change the center of a shape assigned to a mesh?

1) You can create a shape as you want, if it is not too complex: 

https://www.leadwerks.com/learn?page=API-Reference_Object_Asset_Shape_Box

2) You can think about another solution: deplacing the mesh.

https://www.leadwerks.com/learn?page=API-Reference_Object_Surface_SetVertexPosition

3) here there is a tutorial on how to create your own shape, creating your own .phy if I can could good remember

 

 

 

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