samp.directory
← Scripts et bibliothèques

MuthaX/ModelGeometryInfo-SAMP

Pas de description sur GitHub.

Bibliothèque★ 1mis à jour déc. 2023Pas de licencePawn
Ouvrir sur GitHub

Ce dépôt n’a pas de fichier de licence. Il est public en lecture, mais cela ne donne pas à lui seul le droit de le réutiliser.

L’essayer dans le compilateur Pawn →

Ajoute ses fichiers include, avec les bibliothèques dont il dépend, au compilateur Pawn de ton navigateur, prêts à être inclus dans un script.

README.md

ModelGeometryInfo-SAMP

The purpose of this script if to get some basic information of game models geometry on server. You can get similiar functions at https://github.com/Crayder/Model-Sizes-Plus - that script based on collision data of models. Here presented data that found in visual models (from *.dff files), but it is also can be easily extended for additional data.

Attention

There a list of main data differences presented here in front of Model-Sizes-Plus.

  • You have to manually load desired resources. See 'resources' directory.
  • Here represented AABB3 for models that didn't have collision.
  • Some models like trees, bushes, flowers are bigger here because of non-collision part of model.
  • Some objects like buildings and roads have flaps that makes AABB3 bigger (avoidance method of see-though corners).
  • Some objects have too different collision than visual model.

Functions

ModelGeom_initVisual_AABB3(const filepath[])

Load information about visible part of objects (AABB3) from binary file.

ModelGeom_getVisualBoxBounds(const modelid, &Float:min_x, &Float:min_y, &Float:min_z, &Float:max_x, &Float:max_y, &Float:max_z)

Get bounds as AABB3 of visible object.

ModelGeom_getVisualBoxSize(const modelid, &Float:size_x, &Float:size_y, &Float:size_z)

Get size of AABB3 of visible object.

ModelGeom_getVisualCenter(const modelid, &Float:pos_x, &Float:pos_y, &Float:pos_z)

Get center position of AABB3 of visible object.

Cette page est construite à partir de ce que GitHub publie sur le dépôt. samp.directory n’héberge pas le code. Signaler un problème avec cette fiche

MuthaX/ModelGeometryInfo-SAMP : Bibliothèque SA-MP | samp.directory