tipforeveryone
Bronze Supporter
|
How to update scale of physic shape of an object
|
|
01-13-2024 01:47 AM |
|
tipforeveryone
Bronze Supporter
|
RE: How to update scale of physic shape of an object
I still can see one axis scaling for object in editor still being kept when run the game. How can I do the same with my custom object
|
|
01-13-2024 04:01 AM |
|
Esenthel
Administrator
|
RE: How to update scale of physic shape of an object
For physics I think you have to just create actor with correct scale:
Code:
Bool createTry(C PhysPart &part , Flt density=1, C Vec &scale =1 , Bool kinematic=false); // create from PhysPart , false on fail, 'density'=density multiplier, 'scale '=custom body scale , 'kinematic'=if create actor as kinematic
Bool createTry(C PhysBody &phys , Flt density=1, C Vec &scale =1 , Bool kinematic=false); // create from PhysBody , false on fail, 'density'=density multiplier, 'scale '=custom body scale , 'kinematic'=if create actor as kinematic
https://github.com/Esenthel/EsenthelEngi...Static.cpp
|
|
01-13-2024 04:31 AM |
|
tipforeveryone
Bronze Supporter
|
RE: How to update scale of physic shape of an object
How can I get PhysBody from a created Game.Item ? I still stuck with this
And how to keep non-uniform scale for custom class object in editor ? E.G: X Scale = 0.5, Y Scale = 1, Z Scale = 0.7. Non Uniform scaling only apply on Terrain Class objects?
|
|
01-24-2024 01:19 PM |
|