Skip to content

Commit

Permalink
server: implemented initial PhysX 4.1 working integration
Browse files Browse the repository at this point in the history
  • Loading branch information
SNMetamorph committed Sep 8, 2023
1 parent c07a708 commit 80a8871
Show file tree
Hide file tree
Showing 14 changed files with 1,414 additions and 1,230 deletions.
5 changes: 4 additions & 1 deletion server/cbase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1406,7 +1406,10 @@ BEGIN_DATADESC_NO_BASE( CBaseEntity )
DEFINE_FIELD( m_iActorType, FIELD_CHARACTER ),
DEFINE_FIELD( m_iActorFlags, FIELD_INTEGER ),
DEFINE_FIELD( m_iBodyFlags, FIELD_INTEGER ),
DEFINE_FIELD( m_usActorGroup, FIELD_SHORT ),
DEFINE_FIELD( m_iFilterData[0], FIELD_INTEGER ),
DEFINE_FIELD( m_iFilterData[1], FIELD_INTEGER ),
DEFINE_FIELD( m_iFilterData[2], FIELD_INTEGER ),
DEFINE_FIELD( m_iFilterData[3], FIELD_INTEGER ),
DEFINE_FIELD( m_flBodyMass, FIELD_FLOAT ),
DEFINE_FIELD( m_fFreezed, FIELD_BOOLEAN ),
END_DATADESC()
Expand Down
10 changes: 5 additions & 5 deletions server/cbase.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ CBaseEntity
CBasePlayer
CBaseGroup
*/

#define MAX_PATH_SIZE 10 // max number of nodes available for a path.
#pragma once
#define MAX_PATH_SIZE 10 // max number of nodes available for a path.

// These are caps bits to indicate what an object's capabilities (currently used for save/restore and level transitions)
#define FCAP_SET_MOVEDIR 0x00000001 // convert initial angles into direction (doors used)
Expand Down Expand Up @@ -239,9 +239,9 @@ class CBaseEntity
// PhysX description
void *m_pUserData; // pointer to rigid body. may be NULL
unsigned char m_iActorType; // static, kinetic or dynamic
int m_iActorFlags; // NxActor->flags
int m_iBodyFlags; // NxBodyDesc->flags
short m_usActorGroup; // NxActor->group
uint32_t m_iActorFlags; // NxActor->flags
uint32_t m_iBodyFlags; // NxBodyDesc->flags
uint32_t m_iFilterData[4]; // NxActor->group
float m_flBodyMass; // NxActor->mass
BOOL m_fFreezed; // is body sleeps?
bool m_isChaining;
Expand Down
Loading

0 comments on commit 80a8871

Please sign in to comment.