mirror of https://github.com/bjornbytes/lovr.git
Fix trailing whitespace;
This commit is contained in:
parent
80a33c0544
commit
eb319fdade
|
@ -116,7 +116,7 @@ static int l_lovrShapeGetPosition(lua_State* L) {
|
|||
static int l_lovrShapeSetPosition(lua_State* L) {
|
||||
Shape* shape = luax_checkshape(L, 1);
|
||||
lovrAssert(lovrShapeGetCollider(shape) != NULL, "Shape must be attached to collider");
|
||||
float position[4];
|
||||
float position[4];
|
||||
luax_readvec3(L, 2, position, NULL);
|
||||
lovrShapeSetPosition(shape, position[0], position[1], position[2]);
|
||||
return 0;
|
||||
|
|
|
@ -907,8 +907,7 @@ void lovrCylinderShapeSetLength(CylinderShape* cylinder, float length) {
|
|||
|
||||
MeshShape* lovrMeshShapeInit(MeshShape* mesh, int vertexCount, float vertices[], int indexCount, dTriIndex indices[]) {
|
||||
dTriMeshDataID dataID = dGeomTriMeshDataCreate();
|
||||
dGeomTriMeshDataBuildSingle(dataID, vertices, 3 * sizeof(float), vertexCount,
|
||||
indices, indexCount, 3 * sizeof(dTriIndex));
|
||||
dGeomTriMeshDataBuildSingle(dataID, vertices, 3 * sizeof(float), vertexCount, indices, indexCount, 3 * sizeof(dTriIndex));
|
||||
dGeomTriMeshDataPreprocess2(dataID, (1U << dTRIDATAPREPROCESS_BUILD_FACE_ANGLES), NULL);
|
||||
mesh->id = dCreateTriMesh(0, dataID, 0, 0, 0);
|
||||
mesh->type = SHAPE_MESH;
|
||||
|
|
Loading…
Reference in New Issue