physics_fixture_create

This function creates a fixture and returns the id of that fixture to be used in all further calls.

Syntax:

physics_fixture_create()


Returns: Index of the fixture


Description

The first step in setting up a fixture is creating it with this function. The returning index should be stored in a variable to be used in all further functions that are used to define and use this fixture.


Example:

fix_Ball = physics_fixture_create();

The code above will create a fixture and store its index in the variable "fix_Ball";


Back: Fixtures
Next: physics_fixture_bind
© Copyright YoYo Games Ltd. 2018 All Rights Reserved