Informatix Expert Licensed User Longtime User Jun 21, 2019 #1 Hello, I did not find how to set the position of B2CircleShape in XUI2D. I need it to create a body with a circle shape that is not centered (complex body with many fixtures). It's possible with my jBox2D lib.
Hello, I did not find how to set the position of B2CircleShape in XUI2D. I need it to create a body with a circle shape that is not centered (complex body with many fixtures). It's possible with my jBox2D lib.
Erel B4X founder Staff member Licensed User Longtime User Jun 23, 2019 #2 (Moved to the games forum) A missing feature is not a bug. However the feature isn't missing. The simplest way to create complex bodies is with Tiled: Example: https://www.b4x.com/android/forum/threads/xui2d-image-body-different-size.105212/#post-659107 Creating a non-centered circle shape: B4X: Dim circle As B2CircleShape circle.Initialize(0.3) circle.SupportVertex.Set(0.5, 0.5)
(Moved to the games forum) A missing feature is not a bug. However the feature isn't missing. The simplest way to create complex bodies is with Tiled: Example: https://www.b4x.com/android/forum/threads/xui2d-image-body-different-size.105212/#post-659107 Creating a non-centered circle shape: B4X: Dim circle As B2CircleShape circle.Initialize(0.3) circle.SupportVertex.Set(0.5, 0.5)