MCPcopy Create free account
hub / github.com/Panzerschrek/Chasm-Reverse / CollideWithSquare

Function CollideWithSquare

PanzerChasm/server/map.cpp:38–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38static bool CollideWithSquare( const MapData::ModelDescription& model_description )
39{
40 // CYKABLAT!
41 // It seems, that original game uses cicrcles collision, if lower radius bit is 0, and square, if this bit is 1.
42 return ( int(model_description.radius * 256.0f) & 1 ) == 1;
43}
44
45Map::Rocket::Rocket(
46 const EntityId in_rocket_id,

Callers 3

CollideWithMapMethod · 0.85
TickMethod · 0.85
GetFloorLevelMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected