Chipmunk2D Pro API Reference
7.0.1
Main Page
Modules
Classes
Files
File List
All
Classes
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Groups
Pages
include
chipmunk
chipmunk_unsafe.h
1
/* Copyright (c) 2013 Scott Lembcke and Howling Moon Software
2
*
3
* Permission is hereby granted, free of charge, to any person obtaining a copy
4
* of this software and associated documentation files (the "Software"), to deal
5
* in the Software without restriction, including without limitation the rights
6
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
* copies of the Software, and to permit persons to whom the Software is
8
* furnished to do so, subject to the following conditions:
9
*
10
* The above copyright notice and this permission notice shall be included in
11
* all copies or substantial portions of the Software.
12
*
13
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
* SOFTWARE.
20
*/
21
22
/* This header defines a number of "unsafe" operations on Chipmunk objects.
23
* In this case "unsafe" is referring to operations which may reduce the
24
* physical accuracy or numerical stability of the simulation, but will not
25
* cause crashes.
26
*
27
* The prime example is mutating collision shapes. Chipmunk does not support
28
* this directly. Mutating shapes using this API will caused objects in contact
29
* to be pushed apart using Chipmunk's overlap solver, but not using real
30
* persistent velocities. Probably not what you meant, but perhaps close enough.
31
*/
32
38
39
#ifndef CHIPMUNK_UNSAFE_H
40
#define CHIPMUNK_UNSAFE_H
41
42
#ifdef __cplusplus
43
extern
"C"
{
44
#endif
45
47
CP_EXPORT
void
cpCircleShapeSetRadius
(
cpShape
*shape,
cpFloat
radius);
49
CP_EXPORT
void
cpCircleShapeSetOffset
(
cpShape
*shape,
cpVect
offset);
50
52
CP_EXPORT
void
cpSegmentShapeSetEndpoints
(
cpShape
*shape,
cpVect
a,
cpVect
b);
54
CP_EXPORT
void
cpSegmentShapeSetRadius
(
cpShape
*shape,
cpFloat
radius);
55
57
CP_EXPORT
void
cpPolyShapeSetVerts
(
cpShape
*shape,
int
count,
cpVect
*verts,
cpTransform
transform);
58
CP_EXPORT
void
cpPolyShapeSetVertsRaw(
cpShape
*shape,
int
count,
cpVect
*verts);
60
CP_EXPORT
void
cpPolyShapeSetRadius
(
cpShape
*shape,
cpFloat
radius);
61
62
#ifdef __cplusplus
63
}
64
#endif
65
#endif
66
Generated on Thu Jul 2 2015 11:28:11 for Chipmunk2D Pro API Reference by
1.8.3.1