Create a sphere entity with mesh and transform.
Create a sphere entity with mesh and transform
- Parameters
-
| core | Engine core reference |
| info | Parameters for creating the sphere (radius, position, rotation, scale, segments, rings) |
- Returns
- Engine::Entity The created entity with mesh and transform
sphere.
AddComponent<Physics::RigidBody>(core, Physics::RigidBody::CreateDynamic());
decltype(auto) AddComponent(TComponent &&component)
Add a component to an entity.
Definition Entity.hpp:55
Engine::Entity CreateSphere(Engine::Core &core, CreateSphereInfo info)
Definition CreateShape.cpp:22
a sphere entity: