Jump to content

Recommended Posts

Posted

Is it possible to change the center of a shape assigned to a mesh?
I am creating a bucket for a ragdoll on the leg part and the joint would be at one end of that bucket.

 

 

Astrocuco.thumb.png.c76e0fb3de2d6e437e7dca099625e11e.png

Posted

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

  • Like 1
Posted
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.

 

 

Astrocuco.thumb.png.c76e0fb3de2d6e437e7dca099625e11e.png

Posted
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

 

 

 

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