Model Extensions
Extension methods for ModelComponent, in the Stride.CommunityToolkit.Engine namespace.
Measuring a model
Useful when you are placing procedurally created entities and do not know their size up front.
GetMeshHWL()- Returns the height, width and length of the model as aVector3, from its bounding box.GetMeshHeight()- Just the height, for the common case of standing something on the ground.GetMeshVerticesAndIndices()- Reads the raw vertex and index data back out of the mesh, for building a collider or doing your own geometry work.
Material parameters
SetMaterialParameter()- Sets a shader parameter on one of the component's materials, without going throughRenderGroupplumbing yourself. Overloads cover value, object and permutation parameters, keys and accessors, single values and arrays, with optionalmaterialIndexandpassIndex.