Skip to content

Commit

Permalink
97 .cpp and .h files under engine/src/cmd/collide2: More copyright no…
Browse files Browse the repository at this point in the history
…tice fixes; converting tabs to spaces
  • Loading branch information
stephengtuggy committed Jan 21, 2025
1 parent 7787d1d commit db859a0
Show file tree
Hide file tree
Showing 97 changed files with 654 additions and 904 deletions.
24 changes: 12 additions & 12 deletions engine/src/cmd/collide2/CSopcodecollider.cpp
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
/*
Copyright (C) 2000 by Jorrit Tyberghein
Copyright (C) 2000 by Jorrit Tyberghein
Copyright (C) 2020 pyramid3d
Copyright (C) 2020-2025 Stephen G. Tuggy
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

/*
Expand Down
62 changes: 31 additions & 31 deletions engine/src/cmd/collide2/CSopcodecollider.h
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
/*
Copyright (C) 2000 by Jorrit Tyberghein
Copyright (C) 2000 by Jorrit Tyberghein
Copyright (C) 2020 pyramid3d
Copyright (C) 2020-2025 Stephen G. Tuggy, Benjamen R. Meyer
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the Free
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

/*
Expand All @@ -38,33 +38,33 @@
#include "gfx/mesh.h"

/*
How to use Collider.
How to use Collider.
The next two calls happen usually once when you first create a unit.
The next two calls happen usually once when you first create a unit.
Create an instance of the collider sending it the appropriate geometry
csOPCODECollider(const vector<mesh_polygon>&);
Create an instance of the collider sending it the appropriate geometry
csOPCODECollider(const vector<mesh_polygon>&);
Optionally set if you want to return on first contact or not.
It defaults to not.
csOPCODECollider.SetOneHitOnly(bool);
Optionally set if you want to return on first contact or not.
It defaults to not.
csOPCODECollider.SetOneHitOnly(bool);
The rest of the calls occur in your physics loops
The rest of the calls occur in your physics loops
Reset our list of collided pairs of vectors.
csOPCODECollider.ResetCollisionPairs();
Reset our list of collided pairs of vectors.
csOPCODECollider.ResetCollisionPairs();
Check if a collision occurred, sending the other collider and transforms for
both colliders. Returns true if we collided.
csOPCODECollider.Collide(csOPCODECollider&, const csReversibleTransform* first,
const csReversibleTransform* second);
Check if a collision occurred, sending the other collider and transforms for
both colliders. Returns true if we collided.
csOPCODECollider.Collide(csOPCODECollider&, const csReversibleTransform* first,
const csReversibleTransform* second);
If true, retrieve the vectors that collided so we can act upon them.
csOPCODECollider.GetCollisions();
If true, retrieve the vectors that collided so we can act upon them.
csOPCODECollider.GetCollisions();
We also need the number of collided vectors in case we dont have
first hit set to true.
csOPCodeCollider.GetCollisionPairCount();
We also need the number of collided vectors in case we dont have
first hit set to true.
csOPCodeCollider.GetCollisionPairCount();
*/


Expand Down
11 changes: 6 additions & 5 deletions engine/src/cmd/collide2/Ice/IceAABB.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/**
* Contains AABB-related code.
* \file IceAABB.cpp
* \author Pierre Terdiman
* \date January, 29, 2000
* Contains AABB-related code.
* \file IceAABB.cpp
* \author Pierre Terdiman
* \date January, 29, 2000
*
* Copyright (C) 2021, 2022, 2025 Stephen G. Tuggy
* Copyright (C) 2000-2025 Pierre Terdiman, Stephen G. Tuggy
* Public Domain
*/
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Expand Down
Loading

0 comments on commit db859a0

Please sign in to comment.