Simple collision detection (2019)

Author's sample script, wroks, hints.
Post Reply
User avatar
3DfromNULL
Site Admin
Posts: 45
Joined: 2018-Jul-13 9:35

Simple collision detection (2019)

Post by 3DfromNULL »

The grid array is generated so that each element does not intersect with the specified text object. The script uses CollisionCheckObjWithScene(), FreeCollisionReport(), and TextCreate(), etc.



Edited on Mar 11 2019:
Corrected the attached script file for tS5, and replaced it from 1c to 1d. Please right-click the ground once after started the script if you run on tS5.
ptsxpy must be 0.0.5 or later for any tS version.
Tested with ( ptsx3py ver.0.0.5, ptsx2py ver.0.0.5 ) x ( tS6.6 of 7, tS5.1 ).

Edited on Mar 12 2019, Apr 26 2021:
This script can be run on tS5 or higher versions because tS4.3 does not have tsxTextCreate() API function. If you try with ts4.3, please replace the text creation with other object (tS4.3 has collision detection API functions).

Image Image
Image Image Image Image
Attachments
collision1d.py
script file
(3.49 KiB) Downloaded 2418 times
Post Reply