About Store Forum Documentation Contact



Post Reply 
How to keep scale for custom object class in editor
Author Message
tipforeveryone Offline
Bronze Supporter

Post: #1
How to keep scale for custom object class in editor
When I assign an object in editor with an Object Class instead of Terrain Class, scaling object in Titan Editor does not remain in game, whatever scale I set in editor will become 1.0 ingame.

In virtual drawPrepare() function of custom class, I use "mesh->draw(matrix())"
How can I make this matrix keep scale same as Editor ?
10-03-2023 06:16 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: How to keep scale for custom object class in editor
https://github.com/Esenthel/EsenthelEngi...ic.cpp#L27
This example stores the scale in its _matrix_scaled member.
10-04-2023 05:55 AM
Find all posts by this user Quote this message in a reply
tipforeveryone Offline
Bronze Supporter

Post: #3
RE: How to keep scale for custom object class in editor
mesh->draw(matrixScaled());

It works !
10-23-2023 09:42 AM
Find all posts by this user Quote this message in a reply
Post Reply